Follow-up Comment #4, patch #1141 (project wesnoth): You're right, what I was saying about SDL rectangles didn't really make any sense.
Doing some testing, it seems that it is very slow when we have the rectangle {0, 0, w, h}. I do not know why. Making it a pixel smaller in any direction makes it fast... odd. To give you an idea, when scrolling, setting the w and h correctly gives ~15fps, just doing an SDL_Flip gives ~30fps and having a special case that handles the full-screen rectangle and shrinks it 1 pixel gives ~40 fps. (a special case that signals to do an SDL_Flip when it sees that rectangle is just as bad as sending the rectangle) I have no idea why this is. _______________________________________________________ Reply to this item at: <http://gna.org/patch/?1141> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Wesnoth-bugs mailing list Wesnoth-bugs@gna.org https://mail.gna.org/listinfo/wesnoth-bugs