test/testblitspeed.c
branchgsoc2008_nds
changeset 2669 e27bdcc80744
parent 2267 c785543d1843
child 5535 96594ac5fd1a
equal deleted inserted replaced
2668:bb3241de289e 2669:e27bdcc80744
   395             SDL_Flip(dest);     /* show it! */
   395             SDL_Flip(dest);     /* show it! */
   396             SDL_FillRect(dest, NULL, clearColor);       /* blank it for next time! */
   396             SDL_FillRect(dest, NULL, clearColor);       /* blank it for next time! */
   397         }
   397         }
   398 
   398 
   399         now = SDL_GetTicks();
   399         now = SDL_GetTicks();
   400     }
   400     } while (now < end);
   401     while (now < end);
       
   402 
   401 
   403     printf("Non-blitting crap accounted for %d percent of this run.\n",
   402     printf("Non-blitting crap accounted for %d percent of this run.\n",
   404            percent(testms - elasped, testms));
   403            percent(testms - elasped, testms));
   405 
   404 
   406     printf("%d blits took %d ms (%d fps).\n",
   405     printf("%d blits took %d ms (%d fps).\n",