|
|
|
|
|
by wreegab
4580 days ago
|
|
Why is the image constantly redrawn? EDIT: Ok at first there were no moving creatures in it. I see why it is redrawn, now my question would be more like: why is the whole image constantly redrawn? (Dirty rectangle goes a long way). |
|
So: the reason it's constantly redrawn is because GameMaker redraws the whole screen.
But also, it's important to note that GameMaker is meant to be general purpose game engine. Dirty rectangles work great if you're building very specific kinds of games where only small portions of the screen are updating at any time. For a game like Spelunky, which is a platformer where the whole screen moves (aka there's fast "camera" motion), it doesn't provide very large performance boosts at all. I don't work on GM so I can only guess but I'm pretty sure it's a combination of a super-legacy engine (GM is 15 years old and hasn't had a complete rewrite ever) as well as a need to be as flexible as possible.