   Pong
  Hi this is my first attempt at a pong game.  I will make a lot of improvements. But i have a few questions. Somehow the game seems to stutter a little and fps is never above 70 on my pc which is weird for a game like this. And most of the times my collision code works fine but it sometime gives weird results. Can you help me fix these problems?http://home.student.utwente.nl/a.minnema/PongV2.rartnx   
  Well i found that the performance problems come from loading a font each loop. But i need to do this because i use different sizes of fonts, and sdl_ttf only allows to set the size whilst loading the font. Does anyone have a solution for this?   ;  Preload the different sizes doing the init stages as seperate TTF_Font variables.   ;Quote:Original post by yaustarPreload the different sizes doing the init stages as seperate TTF_Font variables.To elaborate:Have like one TTF_Font fontSize12, and another one TTF_Font fontSizeABAJILLIONLOL, yeah.   