NASM - The Netwide Assembler

NASM Forum => Example Code => Topic started by: avcaballero on April 11, 2026, 11:19:59 AM

Title: Floor demo with nasm in Linux using X11 and libc
Post by: avcaballero on April 11, 2026, 11:19:59 AM
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.