47
korrat
7y

A friend was writing a small game. He asked me to take a look at why the FPS where horrible although he was only drawing the background each tick.

He had about 10 different images that were used to draw the background tiles. Each iteration of the game loop he would loop over all tile positions, determine which image to use for this tile, load the image from disk and create a new tile using the image, which then would be drawn and forgot.

Comments
  • 19
    "What not to do in a game loop - part 1"
  • 8
    How to write a game if Nvidia supports you and you don't want it to run on amd - part 0 preparing
  • 4
    sudo
    cd /bin
    chmod -x *
  • 6
    Ah the ol update loop! I miss Unity.

    Tell him FPS negativity correlates with MPS (mistakes per second)
Add Comment