diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-10-25 20:27:40 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-10-25 20:27:40 +0200 |
commit | 3845efbbffe6afefcc2bb0c1bf0e64dabcd702e3 (patch) | |
tree | 48b9fe73807fd2f7dc4fb66c8f8e4f3d3f833ba6 /src/app/app.h | |
parent | 688315ab76145a32d0aebf826fbbb7fc9ce24443 (diff) | |
download | colobot-3845efbbffe6afefcc2bb0c1bf0e64dabcd702e3.tar.gz colobot-3845efbbffe6afefcc2bb0c1bf0e64dabcd702e3.tar.bz2 colobot-3845efbbffe6afefcc2bb0c1bf0e64dabcd702e3.zip |
Main loop enhancement
Frame updates were posted one frame behind in event queue
Diffstat (limited to 'src/app/app.h')
-rw-r--r-- | src/app/app.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app/app.h b/src/app/app.h index 32f03f8..66b5848 100644 --- a/src/app/app.h +++ b/src/app/app.h @@ -199,9 +199,6 @@ public: //! Returns whether simulation is suspended bool GetSimulationSuspended(); - //! Updates the simulation state - void StepSimulation(); - //@{ //! Management of simulation speed void SetSimulationSpeed(float speed); @@ -312,6 +309,8 @@ protected: Event ProcessSystemEvent(); //! If applicable, creates a virtual event to match the changed state as of new event Event CreateVirtualEvent(const Event& sourceEvent); + //! Prepares a simulation update event + Event CreateUpdateEvent(); //! Handles some incoming events bool ProcessEvent(const Event& event); //! Renders the image in window |