• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Background and surfaces

Niels

Member
I was thinking:
If I have a game where the gameroom is the same size as my view/resolution, and I want to draw my (non tiled) static background to it, could I just draw it to it's own surface (that doesn't get refreshed every tick to save textute swapping and processing power?
 

Paskaler

Member
You'd still have to draw the surface every frame, unless you want artifacting. It would just be more hassle, since you'd have to keep track of whether the surface exists, then re-create it.
 

Paskaler

Member
I don't think so. I should've also mentioned, I'm no expert in surfaces, but, this is how my thinking went:
  • You draw the BG to surface(GameMaker implicitly loads the texture page the BG is on into VRAM)
  • The surface is loaded to VRAM as well
  • You still have to issue a draw call to draw the surface on the screen
Just seems to me, there's more steps, as opposed to GameMaker just drawing the BG itself in a single step.
 
Top