#Mouse movement dictates entire program. (SFML)

15 messages · Page 1 of 1 (latest)

quartz canopyBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

pine gate
#

Mouse movement dictates entire program. (SFML)

lethal thunder
#

so is it an error?

#

I'm confused

pine gate
#

you can see when I wiggle the mouse quickly the game runs normally. When the mouse slows down, huge frame skipping is happening.

obtuse hull
#

I see the problem with this is that you are pulling events. When you wiggle your mouse more events are made so the while loop is called more.

dense shuttle
#

I looked at the code. you're doing everything inside the pollEvent loop, also you have copied pollEvent loop twice. you should handle events first, then update and render the entities.

pine gate
pine gate
#

Oh my god it was a misplaced bracket

quartz canopyBOT
#

@pine gate

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

pine gate
#

!solved