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

Author Topic: Program lagging all of the sudden?  (Read 1429 times)

0 Members and 2 Guests are viewing this topic.

Makuto

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Au 79 Games
    • Email
Program lagging all of the sudden?
« on: March 24, 2011, 01:31:59 pm »
I have a problem with my program.  At the beginning of the day, my program ran smoothly and quickly.  The only editing I did was minor mathematical changes.  At the end of the day (once I got home), the program ran slowly.  I have set vertical sync to true and I am limiting the frame rate to 45 fps.  I have no idea why this would be happening.  Do you have any ideas on what went wrong?
The program is only taking up 10% of the processor, the mouse blinks and there are little boxes that appear when I select my buttons.
Macoy Madson-Au 79 Games
Check out my work at http://augames.f11.us/
Most of my SFML-related code is here: https://github.com/makuto/personal/tree/master/gameDev/resources/base2.0
I try to KIS(S), do you?

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
Program lagging all of the sudden?
« Reply #1 on: March 24, 2011, 02:05:48 pm »
Could it be that you're using SetFrameLimit() and UseVerticalSync(true) at the same time?

Makuto

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Au 79 Games
    • Email
Program lagging all of the sudden?
« Reply #2 on: March 24, 2011, 03:58:49 pm »
I do use both at the same time, but I get a blinking mouse without usevertical sync and 100% CPU without a framerate limit.
Macoy Madson-Au 79 Games
Check out my work at http://augames.f11.us/
Most of my SFML-related code is here: https://github.com/makuto/personal/tree/master/gameDev/resources/base2.0
I try to KIS(S), do you?

 

anything