Monday 9 July 2012

Update scheme almost ready

New GUI update routines are now ready, but there is a clean-up of old manual update routines yet to finish. One major thing I noticed was that there was a call to world->Update (now Redraw) which cleared the screen and then redraw everything in each turn. The new version is designed to prevent that kind of stuff which is slowing down the game even it can't be noticed on modern PC. Another thing I need is the actual redraw of elements to have same kind of notification that FOV rebuild has. I think gameview (Level::Show) needs it at least. It could be called Level::Request_Update to mimic World::Request_LOS_Rebuild.

There are quite number of manual updates which have to be resolved by better program flow with less calls to update routines, mostly concentrated running only once per turn. It's time consuming trying to build a "perfect" solution, but I think it's worth the effort.

No comments: