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.
15 messages · Page 1 of 1 (latest)
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.
Mouse movement dictates entire program. (SFML)
Sorry - I should have clarified.
No error, it's more of a glitch.
When you get in game the mouse - well let me just show you
you can see when I wiggle the mouse quickly the game runs normally. When the mouse slows down, huge frame skipping is happening.
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.
I don't know how to fix this.
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.
How do I fix that? When I try it breaks everything or I get tons of errors. I don't understand anything about pollEvents, I had help writing that particular code.
@pine gate
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.
!solved