Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualmhagain

Posted 03 November 2012 - 06:33 PM

OK, fundamental misunderstanding here.

When you're drawing stuff you don't just set down a baseline and then only change stuff that needs to be changed.

Instead, for each frame, you first clear the screen - everything goes away - then you draw everything all over again. The "draw everything all over again" part is where you can remove stuff that you don't want to draw and add new stuff that you do want.

This flies in the face of all logic if you come from an "everything is software" mode of thinking, but this is actually the way GPUs like to be used. So don't try anything tricksy to circumvent it; instead use your GPU the way it wants to be used and it will be good to you in return.

If by now you're recoiling in horror and thinking "surely that's going to give awful performance" - remember - Quake did this in 1996. It wasn't a problem then and it's not a problem now.

#1mhagain

Posted 03 November 2012 - 06:27 PM

OK, fundamental misunderstanding here.

When you're drawing stuff you don't just set down a baseline and then only change stuff that needs to be changed.

Instead, for each frame, you first clear the screen - everything goes away - then you draw everything all over again. The "draw everything all over again" part is where you can remove stuff that you don't want to draw and add new stuff that you do want.

This flies in the face of all logic if you come from an "everything is software" mode of thinking, but this is actually the way GPUs like to be used. So don't try anything tricksy to circumvent it; instead use your GPU the way it wants to be used and it will be good to you in return.

If by now you're recoiling in horror and thinking "surely that's going to give awful performance" - remember - Quake did this in 1996. It's not a problem.

PARTNERS