From: Wenyuan G. <guo...@gm...> - 2010-07-07 12:52:38
|
Hi Tim, Thanks for the input. > However, I did notice a performance problem that might be more severe: if the > user hits F10 to toggle between full-screen and windowed modes, it takes time > (~2s?) for the window to update. Furthermore, its substantially longer if the > cache has not been populated at this resolution before. Interestingly, this > only happens in the "menu" code; the game switches essentially instantly, > presumably because that code isn't using the new loader. > Pressing F10 will require scaling of all menu sprites to the new resolution. It used to take like 5s without caching. Now it roughly takes 1-2s. But you have spotted a bug too! I tested the program and indeed it is instantaneous when switching in-game. The reason is that it doesn't scale the menu items. As a result, if you then quit the game and return to the menu, all sprites will still be as big as in fullscreen mode, resulted in a clipped screen. I suspect this bug was present in the older versions too, i.e. before SVG caching was introduced. I will look into it. Cheerz Wenyuan |