X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsdl.c;h=65057b61ba0cd221c273ab4283ed6110ef6eb696;hb=ccbc62287e20cd3776b95980a77be3fee5ad7053;hp=26cc7a7b103076df0c2d228ad8041f54744c506d;hpb=142d88521dfcde187ea315279d79203c00e1b0f3;p=rocksndiamonds.git diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index 26cc7a7b..65057b61 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -1788,6 +1788,10 @@ Bitmap *SDLLoadImage(char *filename) Bitmap *new_bitmap = CreateBitmapStruct(); SDL_Surface *sdl_image_tmp; + print_timestamp_init("SDLLoadImage"); + + print_timestamp_time(getBaseNamePtr(filename)); + /* load image to temporary surface */ if ((sdl_image_tmp = IMG_Load(filename)) == NULL) { @@ -1796,6 +1800,8 @@ Bitmap *SDLLoadImage(char *filename) return NULL; } + print_timestamp_time("IMG_Load"); + UPDATE_BUSY_STATE(); /* create native non-transparent surface for current image */ @@ -1806,6 +1812,8 @@ Bitmap *SDLLoadImage(char *filename) return NULL; } + print_timestamp_time("SDL_DisplayFormat (opaque)"); + UPDATE_BUSY_STATE(); /* create native transparent surface for current image */ @@ -1818,6 +1826,8 @@ Bitmap *SDLLoadImage(char *filename) return NULL; } + print_timestamp_time("SDL_DisplayFormat (masked)"); + UPDATE_BUSY_STATE(); /* free temporary surface */ @@ -1826,6 +1836,8 @@ Bitmap *SDLLoadImage(char *filename) new_bitmap->width = new_bitmap->surface->w; new_bitmap->height = new_bitmap->surface->h; + print_timestamp_done("SDLLoadImage"); + return new_bitmap; }