Author: alink
Date: Tue Sep 14 07:37:42 2010
New Revision: 46488
URL: http://svn.gna.org/viewcvs/wesnoth?rev=46488&view=rev
Log:
Update display before waiting between frames.
This should reduce display lag with input and sound, but it was only <20 ms.
Modified:
trunk/src/display.cpp
Modified: trunk/src/display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=46488&r1=46487&r2=46488&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Tue Sep 14 07:37:42 2010
@@ -1281,11 +1281,11 @@
if(update) {
if(force || changed) {
+ update_display();
if(!force && wait_time > 0) {
// If it's not time yet to draw, delay until it
is
SDL_Delay(wait_time);
}
- update_display();
}
// Set the theortical next draw time
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits