faster way to clear screen than rectfill
Displaying 1-9 of 9 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
basil

Is there, perchance, a quicker way than rectfill to clear the screen? I suspect not, but you never know...

Posted on 2004-09-28 03:09:04

RageCage

I don't think so. The only other way I can think possible is to have a blank image and blit it to the screen when ever you want to clear it.

Posted on 2004-09-28 03:11:55

Zip

If rectfill is a substantial part of your time per gameloop, you're getting too many fps. Note, though, ShowPage() gets very slow at higher resolutions.

Zip

Posted on 2004-09-28 03:20:35

vecna

Any speed increase from a rectfill to a raw clear would be pretty negligable.

Posted on 2004-09-28 03:23:20

basil

Yeah, I considered that, but I'm pretty sure blits take longer.

Posted on 2004-09-28 03:24:20

blues_zodiakos

Calling Render() clears the screen anyway, does it not? Or is that only while running a map? If you are calling Render you might not need to do a clear.

Posted on 2004-09-28 16:28:59

rpgking

Yeah, Render() renders the map and entities, effectively clearing anything that was drawn to the screen beforehand...

Posted on 2004-09-28 18:21:11

Gayo

I'm pretty sure it doesn't do that if there's no map loaded.

Posted on 2004-09-28 22:40:38

mcgrue

Oh, I believe, if there's no 'R' in the renderstring.

Posted on 2004-09-28 22:43:48


Displaying 1-9 of 9 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.