Uncap FPS, disable VSync, check for mouse input per frame and improve nanoTime precision.

This commit is contained in:
ABU008
2026-03-06 11:26:16 +00:00
parent eccd785110
commit c712b07fc3
5 changed files with 27 additions and 19 deletions

View File

@@ -17,6 +17,7 @@
#include "..\..\Minecraft.World\Vec3.h"
#include "..\..\Minecraft.World\Level.h"
#include "..\..\Minecraft.World\net.minecraft.world.level.tile.h"
#include "..\MultiplayerLocalPlayer.h"
#include "..\ClientConnection.h"
#include "..\User.h"
@@ -265,7 +266,7 @@ HRESULT InitD3D( IDirect3DDevice9 **ppDevice,
pd3dPP->EnableAutoDepthStencil = TRUE;
pd3dPP->AutoDepthStencilFormat = D3DFMT_D24S8;
pd3dPP->SwapEffect = D3DSWAPEFFECT_DISCARD;
pd3dPP->PresentationInterval = D3DPRESENT_INTERVAL_ONE;
pd3dPP->PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;
//pd3dPP->Flags = D3DPRESENTFLAG_NO_LETTERBOX;
//ERR[D3D]: Can't set D3DPRESENTFLAG_NO_LETTERBOX when wide-screen is enabled
// in the launcher/dashboard.
@@ -760,8 +761,6 @@ void CleanupDevice()
if( g_pd3dDevice ) g_pd3dDevice->Release();
}
int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPTSTR lpCmdLine,