1
Window / Re: waitEvent - loop.
« on: June 26, 2023, 01:00:35 pm »I don't expect changing just pollEvent for waitEvent directly to actually have any noticeable effect in that code; it should perform - visually - the same.
That's what i have done at first - just made it "look" like it is working for basic render.
Quote
Note, of course, that the loop doesn't run unless events are present so updates in that loop would not change until an event happens.
Yes, i understand that, that's why i have whole conflict - it won't be good/complete solution because of that.
@eXpl0it3r
The first example that you have posted here is something that i have chosen in this version, ofcourse, without this coloring stuff that demonstrates whole problem - because that would expose problem (i hope it won't be visible at the first glance)
![Grin ;D](https://www.sfml-dev.org/forums/Smileys/default/grin.gif)
The second one is something that is a bit familiar with codesnippet that i have posted in other topic ( but yours is more smooth, which can be useful for me if it needs
![Cheesy :D](https://www.sfml-dev.org/forums/Smileys/default/cheesy.gif)
And you are right - it is just overcomplicated pollEvent that is not 100% safe, but as you said - we're using waitEvent, woohoo !
![Grin ;D](https://www.sfml-dev.org/forums/Smileys/default/grin.gif)
I hope that it won't be necessary to use second aproach, since it will be hard to embed that into basic tutorial/presentation about using SFML... We will see.
Thank you guys for fast reponses, time, and effort that you've put in helping me. I really appreciate it !