Merge lp:~widelands-dev/widelands/lock_game_logic into lp:widelands
Proposed by
SirVer
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 7829 | ||||||||
Proposed branch: | lp:~widelands-dev/widelands/lock_game_logic | ||||||||
Merge into: | lp:widelands | ||||||||
Diff against target: |
136 lines (+54/-40) 3 files modified
src/economy/request.cc (+1/-1) src/ui_basic/panel.cc (+46/-32) src/wui/interactive_base.cc (+7/-7) |
||||||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/lock_game_logic | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | code | Approve | |
Review via email: mp+285980@code.launchpad.net |
Commit message
Decouples UI update frequency from game update frequency (which is now 15 times per second).
Description of the change
This is a hacky-hack. The game logic should not be driven by the UI, but that is such a fundamental design in Widelands that I am not sure if we can ever pull that apart.
For now, this should fix desyncs, I could not reproduce them on my system anymore.
To post a comment you must log in.
Not tested, but code LGTM.
Maybe add a comment to the code to explain why we have the 2 separate intervals?