Hello. Here it is an example on Linux X11+nasm width libc for a floor demo.
It would be nice if someone had the time to prove both codes I have attached. The difference between them is that one waits for XPending and the other don't. What I'm trying to determine is whether this wait makes the code run more smoothly, without stuttering, or not. Something like the vertical retrace wait. At first glance, I'd say they're the same. Perhaps more trained eyes than mine could see a difference. If no difference were noticeable, I wouldn't see the need for that wait.
Thank you.