Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
small breaks
Print
Pages: [
1
]
Author
Topic: small breaks (Read 2935 times)
0 Members and 3 Guests are viewing this topic.
kol
Newbie
Posts: 31
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.
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11034
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?
Logged
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
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.
Logged
Ixrec
Hero Member
Posts: 1241
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.
Logged
kol
Newbie
Posts: 31
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
Logged
Ancurio
Jr. Member
Posts: 66
Re: small breaks
«
Reply #5 on:
October 21, 2013, 10:39:45 pm »
Try turning on VSync:
Code:
[Select]
window.setVerticalSyncEnabled(true);
Logged
Gobbles
Full Member
Posts: 132
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/
Logged
binary1248
SFML Team
Hero Member
Posts: 1405
I am awesome.
Re: small breaks
«
Reply #7 on:
October 22, 2013, 02:28:53 am »
I managed to get a look at the loop.
https://github.com/SFML/SFML/wiki/FAQ#wiki-graphics-smooth-animation
Logged
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
Re: small breaks
«
Reply #8 on:
October 24, 2013, 02:32:30 pm »
Thanks to all, solved !
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
small breaks