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

Author Topic: small breaks  (Read 2391 times)

0 Members and 1 Guest are viewing this topic.

kol

  • Newbie
  • *
  • Posts: 31
    • View Profile
small breaks
« on: October 18, 2013, 09:24:41 pm »
When I'm running my game, he's taking small breaks. What can it be? Not heavy, has nothing in the loop just draws a sprite.

Sorry, my bad english.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10827
    • View Profile
    • development blog
    • Email
AW: small breaks
« Reply #1 on: October 18, 2013, 09:59:53 pm »
Can you provide a minimal and complete example that reproduces the issue?

In which way do you experience those "breaks"? Is it during movement or just fps drops?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kol

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: small breaks
« Reply #2 on: October 18, 2013, 10:54:27 pm »
In the drawing, if I put a variable (int) and show the screen with the sf :: text, gives waged from time to time.

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: small breaks
« Reply #3 on: October 18, 2013, 10:59:10 pm »
I have no idea what "waged" means.

I think you're going to have to post (complete and minimal) code and screenshots of the problem for us to have any idea what you're talking about.

kol

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: small breaks
« Reply #4 on: October 19, 2013, 05:31:26 pm »
http://www.youtube.com/watch?v=k3_2ZcLux_8&feature=youtu.be

Look at the video, the movement is never constant, always gives small lag

Ancurio

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: small breaks
« Reply #5 on: October 21, 2013, 10:39:45 pm »
Try turning on VSync:

Code: [Select]
window.setVerticalSyncEnabled(true);

Gobbles

  • Full Member
  • ***
  • Posts: 132
    • View Profile
    • Email
Re: small breaks
« Reply #6 on: October 22, 2013, 01:21:53 am »
You kind of blaze by your main loop so I couldn't tell if you used a fixed timestep or not. In case your not, try this: http://gafferongames.com/game-physics/fix-your-timestep/

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: small breaks
« Reply #7 on: October 22, 2013, 02:28:53 am »
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

kol

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: small breaks
« Reply #8 on: October 24, 2013, 02:32:30 pm »
Thanks to all, solved ! :)

 

anything