Mirage Source
Only redrawn when it changes... - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Only redrawn when it changes... (/showthread.php?tid=438)



Only redrawn when it changes... - Obsidian - 01-12-2006

I was looking into it... the multiple surface layers, like BigRed submitted, is nice. The map is drawn once, and a few other things are drawn just once (which saves a LOT of loops/memory), but isn't there a more practical way of doing it, like only redrawing only if the initial drawing changes? I've been trying to think of a way to do it, but they would all involve loops and/or timers, and that would really kind of defeat the purpose. Anyone know of a way to do it? or possibly a source code that has something similar to it already that i can use as an example?


- Obsidian - 02-12-2006

oh okay, so like one rectangle per player on the map (for example)? i'm going to try to play with this on a blank MSE source and see what i can do... if i can make a decent version of it (that works completely), i'm going to try and release it as either the source or in a tutorial.

i was also thinking about playing with a huge in-game map... like 10000x10000 maps, and then load/blt/destroy as you walk for a completely seemless scrolling system.