[SDL] X CPU Time
slouken at devolution.com
Mon Jun 12 22:21:25 PDT 2000
> simple program with SDL that makes a screen and then flips it 10,000
> times. I then wrote a simple X program and using xshm display 10,000
> times. When I am using the SDL program, top says that X is using a
> good %20 or the cpu, while in the other one using xshm it uses about 1.5
> or less. Can anyone explain this, as to why it is happening?
Are you calling XSync() after each flip in your xshm program?
If not the server may be batching them, and performing a single flip for
each X number of calls.
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
More information about the SDL