Skip to content

Commit

Permalink
added fps counter
Browse files Browse the repository at this point in the history
* DoNotNotifyOnTaskSwitch added

* FullScreenRefreshRateInHz option
  • Loading branch information
ThirteenAG committed Sep 19, 2022
1 parent b99e0f8 commit c09162d
Show file tree
Hide file tree
Showing 19 changed files with 13,857 additions and 325 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ data/**/*.*
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]uild/
[Bb]in/
Expand Down
3 changes: 3 additions & 0 deletions data/d3d9.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[MAIN]
FPSLimit = 0 // max fps (0: unlimited/off)
FPSLimitMode = 1 // 1: realtime (thread-lock) - 2: accurate (sleep-yield)
FullScreenRefreshRateInHz = 0 // overrides refresh rate selected by directx
DisplayFPSCounter = 0 // displays fps and frametime on screen
ForceWindowedMode = 0 // activates forced windowed mode

[FORCEWINDOWED]
UsePrimaryMonitor = 0 // move window to primary monitor
CenterWindow = 1 // center window on screen
BorderlessFullscreen = 0 // borderless fullscreen windowed mode
AlwaysOnTop = 0 // window stays always on top
DoNotNotifyOnTaskSwitch = 0 // window ignores focus loss
3 changes: 3 additions & 0 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ workspace "d3d9-wrapper"
files { "source/*.h", "source/*.cpp" }
files { "source/*.def" }
files { "source/*.rc" }
includedirs { "source/dxsdk" }

filter "configurations:Debug"
defines "DEBUG"
Expand All @@ -35,9 +36,11 @@ workspace "d3d9-wrapper"
filter "platforms:Win32"
architecture "x32"
targetdir "data"
libdirs { "source/dxsdk/lib/x86" }

filter "platforms:Win64"
architecture "x64"
targetdir "data/x64"
libdirs { "source/dxsdk/lib/x64" }

project "d3d9-wrapper"
8 changes: 4 additions & 4 deletions source/IDirect3DDevice9Ex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ ULONG m_IDirect3DDevice9Ex::Release()
// return ProxyInterface->Reset(pPresentationParameters);
//}

HRESULT m_IDirect3DDevice9Ex::EndScene()
{
return ProxyInterface->EndScene();
}
//HRESULT m_IDirect3DDevice9Ex::EndScene()
//{
// return ProxyInterface->EndScene();
//}

void m_IDirect3DDevice9Ex::SetCursorPosition(int X, int Y, DWORD Flags)
{
Expand Down
Loading

0 comments on commit c09162d

Please sign in to comment.