[SDL] Just a curious question

Garrett mongoose at wpi.edu
Fri Aug 6 12:12:29 PDT 1999


  Does anyone elses SDL app run much faster as root? All Im doing is creating a
single surface and doing a direct access to the surface to draw some pixels.
The surface is just created using SDL_SWSURFACE so it should be in system mem.
Heres some averages for the user and the root running from TOP.  Also when I
run it as root, the memory the program uses goes from 3megs to 36 megs, whys
this?

  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND     
  347 mongoose  11   0  3312 3312  1904 R       0 63.0 2.5   0:08 ProjectX
  184 root            4   0 49924  48M  3180 R       0 34.0 38.9  0:44 X

  PID USER     PRI  NI  SIZE RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
  358 root      13   0 36088  35M  2016 R       0 71.7 28.1  0:07 ProjectX
  184 root       4   0 49300  48M  3184 R       0 25.4 38.4  0:54 X


-Garrett, WPI student majoring in Computer Science.

"He who joyfully marches in rank and file has already earned 
my contempt. He has been given a large brain by mistake, since
for him the spinal cord would suffice." -Albert Einstein



More information about the SDL mailing list