Removed DDFLIP_WAIT flag from DirectX flip for improved performance
authorSam Lantinga <slouken@libsdl.org>
Sat, 17 Aug 2002 18:11:23 +0000
changeset 440791d5ce383bc
parent 439 3ac8344e3872
child 441 598b25b9bffe
Removed DDFLIP_WAIT flag from DirectX flip for improved performance
src/video/windx5/SDL_dx5video.c
     1.1 --- a/src/video/windx5/SDL_dx5video.c	Sat Aug 17 18:03:06 2002 +0000
     1.2 +++ b/src/video/windx5/SDL_dx5video.c	Sat Aug 17 18:11:23 2002 +0000
     1.3 @@ -1920,11 +1920,11 @@
     1.4  	LPDIRECTDRAWSURFACE3 dd_surface;
     1.5  
     1.6  	dd_surface = surface->hwdata->dd_surface;
     1.7 -	result = IDirectDrawSurface3_Flip(dd_surface, NULL, DDFLIP_WAIT);
     1.8 +	result = IDirectDrawSurface3_Flip(dd_surface, NULL, 0);
     1.9  	if ( result == DDERR_SURFACELOST ) {
    1.10  		result = IDirectDrawSurface3_Restore(
    1.11  						surface->hwdata->dd_surface);
    1.12 -		result = IDirectDrawSurface3_Flip(dd_surface,NULL,DDFLIP_WAIT);
    1.13 +		result = IDirectDrawSurface3_Flip(dd_surface, NULL, 0);
    1.14  	}
    1.15  	if ( result != DD_OK ) {
    1.16  		SetDDerror("DirectDrawSurface3::Flip", result);