Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Lag problem  (Read 1653 times)

0 Members and 1 Guest are viewing this topic.

Stupebrett

  • Newbie
  • *
  • Posts: 15
    • View Profile
Lag problem
« on: December 20, 2011, 06:47:59 pm »
I am making a car game which currently has three sprites: the background, moving road lines, and the car. If I draw just the road lines and the car, and not the background, everything runs smooth. But when I draw the background, everythings starts to lag. I did a check, and it only loops through the main game loop 10 times per second when the background is drawn, but around 100 when it's not. Just simply commenting out App.Draw(Background); fixes the problem, but this is of course not an option. The background is a 800x600 .png file. Anyone has an idea why this is happening? Thanks in advance.

Stupebrett

  • Newbie
  • *
  • Posts: 15
    • View Profile
Lag problem
« Reply #1 on: December 21, 2011, 11:47:26 am »
I fixed it. All I had to do was to update the driver for my graphics card.