C++ Learning Community Forum
August 01, 2010, 02:26:55 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Hello. Smiley
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Lag with Textured quads in OpenGL+SDL  (Read 736 times)
cloudncali
Jr. Nerd
***
Posts: 45


View Profile WWW
« on: January 29, 2009, 10:30:03 PM »

ok i am trying to make a 2d game in OpenGL and SDL, i have a working system but i have 1 animated sprite and 2 static sprites but that alone is enought to make the game lag badly i dont know why its doing this.

Here is the souce code
http://www.fileupyours.com/view/228309/Source.rar

so my questions are
1) dose any one know whats wrong with the method i am using
and
2) dose any one know of some good ways to do 2d graphics.

thanks and here is some info about the source code
App.h and App.cpp is the main program code, Main is just there for the Main Function.
GameObject.h has all the different classes for game objects(the three are Graphic object, Animated Graphic object, and Animation)
Animation object is just for animation
Animated Graphic Object has an Animated object in it and has other object properties.
Logged

biggoron
C++ Freak
***
Posts: 351


View Profile
« Reply #1 on: January 30, 2009, 11:43:01 PM »

It looks like App::Input waits for input. Does the FPS increase if you keep providing it with input?
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!