1
Graphics / Framerate, rendering and optimisations
« on: February 15, 2012, 10:57:04 pm »
Hi!
So I'm coding this little game, just for fun, and when I add say more than twenty objects, it starts to go downhill. I have a recent computer with a graphics card (nvidia geforce GT 540m, it says) and a intel core i5 CPU. So it's not slow or anything.
Could it possibly be because I'm using linux, and I couldn't work out the drivers and I think I'm using the software renderer? AssaultCube runs really slowly on it. Is that the cause?
I commented out the line that initiates the rendering, and got an FPS of about 64-70. Which is good, because I set the renderWindow to have a max framerate of 64. But when the line is uncommented (that is, I allow it to render my objects, of which I only have about 40, 32x32 sprites) the FPS drops. A lot. I got it down to 18 once.
I was going to post a whole lot more info, but it just hit me that it's probably the software renderer, isn't it?
*groans* I'm going to have to reinstall linux
So I'm coding this little game, just for fun, and when I add say more than twenty objects, it starts to go downhill. I have a recent computer with a graphics card (nvidia geforce GT 540m, it says) and a intel core i5 CPU. So it's not slow or anything.
Could it possibly be because I'm using linux, and I couldn't work out the drivers and I think I'm using the software renderer? AssaultCube runs really slowly on it. Is that the cause?
I commented out the line that initiates the rendering, and got an FPS of about 64-70. Which is good, because I set the renderWindow to have a max framerate of 64. But when the line is uncommented (that is, I allow it to render my objects, of which I only have about 40, 32x32 sprites) the FPS drops. A lot. I got it down to 18 once.
I was going to post a whole lot more info, but it just hit me that it's probably the software renderer, isn't it?
*groans* I'm going to have to reinstall linux