-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added code to Set/Get FPS Limit without the use of VSync
also changed following defaults VSync by default is now set to false. FPSLimit by default is set to 60 FPS. See SimpleExample to see how to get/set FPS.
- Loading branch information
Showing
3 changed files
with
82 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace ClickableTransparentOverlay.Win32 | ||
{ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
internal static class Winmm | ||
{ | ||
public const string LibraryName = "winmm.dll"; | ||
|
||
[DllImport(LibraryName, EntryPoint = "timeBeginPeriod")] | ||
public static extern uint MM_BeginPeriod(uint uMilliseconds); | ||
|
||
[DllImport(LibraryName, EntryPoint = "timeEndPeriod")] | ||
public static extern uint MM_EndPeriod(uint uMilliseconds); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters