Git Product home page Git Product logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
Sorry, I was wrong. Nothing to do with setFPS. I should just add keyWait() in 
the and of the cycle.
First think, then create an issue.
Closed.

Original comment by [email protected] on 4 Mar 2015 at 8:50

from python-tcod.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
Don't worry about it.  Forgetting to call the event subsystem is actually a 
common beginner mistake with SDL.  I've even seen it happen in modern 
roguelikes where an animation or simulation (sleeping, worldgen) is run for a 
long time without checking for user input causing Windows to believe the 
program is hanging if the user clicks or hits a key during it.

I'm not sure how you're feeling about it, but I tend to be inspired by 
accidental feedback like this since this is actually a real issue that can and 
was triggered from normal use.  I already have the event module fine-tuned to 
work with modal environments so adding a simple call to tdl.event.get from 
tdl.flush could prevent the hangs in the examples I mentioned as well as the 
one you gave.

Or, you know, keyWait works fine too.  So I'll probably just put this idea on 
hold for a while.

Original comment by [email protected] on 5 Mar 2015 at 9:06

  • Changed state: Started
  • Added labels: Priority-Low
  • Removed labels: Priority-Medium

from python-tcod.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
Actually uploaded the fix.  I'll need to work on a lot of regressions before I 
can make a new release.

Original comment by [email protected] on 14 Mar 2015 at 2:23

  • Changed state: Fixed

from python-tcod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.