I've looked at the lag fix thread and wanted to know the best way to go about fixing the lag. What should I add to my code?
Also, will there be a proper BRL fix for this?
Also, will there be a proper BRL fix for this?
Function ccFixLag() 'This fixes the annoying DirectX7 rendering lag in BlitzMax ?Win32 If TD3D7Max2DDriver(_max2dDriver) Local sdesc:DDSurfaceDesc2 = New DDSurfaceDesc2 sdesc.dwSize = SizeOf(sdesc) Local res:Int = PrimaryDevice.backbuffer.Lock(Null,sdesc,DDLOCK_WAIT|DDLOCK_READONLY,Null) PrimaryDevice.backbuffer.unlock(Null) Return res EndIf ? End Function