Windows: Always set the system timer resolution to 1ms by default.
An existing hint lets apps that don't need the timer resolution changed avoid this, to save battery, etc, but this fixes several problems in timing, audio callbacks not firing fast enough, etc. Fixes Bugzilla #2944.
This commit is contained in:
commit
b72938c861
1638 changed files with 474370 additions and 0 deletions
26
visualtest/include/SDL_visualtest_mischelper.h
Normal file
26
visualtest/include/SDL_visualtest_mischelper.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/**
|
||||
* \file mischelper.c
|
||||
*
|
||||
* Header with miscellaneous helper functions.
|
||||
*/
|
||||
|
||||
#ifndef _SDL_visualtest_mischelper_h
|
||||
#define _SDL_visualtest_mischelper_h
|
||||
|
||||
/* Set up for C function definitions, even when using C++ */
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Stores a 32 digit hexadecimal string representing the MD5 hash of the
|
||||
* string \c str in \c hash.
|
||||
*/
|
||||
void SDLVisualTest_HashString(char* str, char hash[33]);
|
||||
|
||||
/* Ends C function definitions when using C++ */
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _SDL_visualtest_mischelper_h */
|
Loading…
Add table
Add a link
Reference in a new issue