I dont know if this is possible without an update but any serious game development needs this. When using OpenScreen() under DirectX9, DirectX defaults to 3 pre rendered frames. If you enable vsync, this equates to a 50ms delay + mouse delay (8ms standard) before seeing any movement. It feels like input lag. Many games have an option to change the amount of pre rendered frames. You can test this below. Also take in to account that on most systems, the mouse pointer is also vsynced with the desktop, you can really see the difference.
Code: Select all
InitSprite()
InitSprite3D()
ExamineDesktops()
OpenScreen(DesktopWidth(0),DesktopHeight(0),32,"",#PB_Screen_WaitSynchronization)
SetClassLong_(ScreenID(),#GCL_HCURSOR, LoadCursor_(0, #IDC_ARROW))
ShowCursor_(1)
ClearScreen(RGB(255,255,255))
GrabSprite(0, 0, 0, 100, 100,#PB_Sprite_Texture)
CreateSprite3D(0,0)
Repeat
Start3D()
DisplaySprite3D(0, DesktopMouseX(), DesktopMouseY())
Stop3D()
FlipBuffers()
ClearScreen(RGB(0, 0, 0))
Until GetAsyncKeyState_(#VK_ESCAPE)