Subversion Repositories eduke32

Rev

Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
8717 114d 19h terminx /source/build/src/winbits.cpp Experimental feature to switch the Windows power plan to "high performance" while the game is running, and switch back upon exit

During testing, CPU frequency scaling reducing the clock speed to sub-1GHz speeds was found to be a cause of frame time inconsistencies/stuttering. This attempts to work around that.

This is disabled by default but can be enabled with win_performancemode 1.
 
8631 144d 11h terminx /source/build/src/winbits.cpp Functionally useless commit that only renames function pointers in winbits.cpp  
8630 144d 11h terminx /source/build/src/winbits.cpp Print HRESULT value directly when DwmGetCompositionTimingInfo() fails, because "Unknown error" turned out to be a pretty useless error string.  
8618 147d 15h terminx /source/build/src/winbits.cpp Print HRESULT error message when DwmGetCompositionTimingInfo() fails (wtf?)  
8612 148d 22h terminx /source/build/src/winbits.cpp Custom driver-independent VSync implementation for Windows  
8422 208d 10h terminx /source/build/src/winbits.cpp Revert "Windows: Remove keyboard layout switching entirely"

This change was not well thought out and breaks a number of things for users of foreign keyboards. Unfortunately, we are still at a point where removing keyboard layout switching is a QOL downgrade.
 
8421 208d 12h hendricks266 /source/build/src/winbits.cpp Windows: Remove keyboard layout switching entirely

Upon testing this already seems to do the right thing in game and editor, with winlayer, SDL 1.2, and SDL 2: use the labels on the keys when entering text such as in the console, and the positions of the keys for everything else.
 
8417 208d 14h hendricks266 /source/build/src/winbits.cpp Fix SDL 1.2 build  
8413 209d 11h terminx /source/build/src/winbits.cpp This should fix rare stalls of several seconds when changing window focus on some Windows systems, related to changing the keyboard layout  
8364 209d 20h terminx /source/build/src/winbits.cpp This workaround doesn't appear to be necessary anymore

Moreover, I couldn't really find any information about the problem this was supposed to resolve when I attempted to research it. The code has already been #if 0'd out for a while.
 
8248 257d 6h terminx /source/build/src/winbits.cpp Fix keyboard layout change console message and make sure windowsPlatformCleanup() gets called from uninitsystem()  
8228 258d 20h terminx /source/build/src/winbits.cpp Tweak the priority classes set by win_priorityclass  
8214 258d 20h terminx /source/build/src/winbits.cpp Use SDL audiolib driver on Windows

This shitcans the SDL_mixer requirement but leaves platforms other than Windows without built-in MIDI playback capability until Nuke.YKT's OPL3 emulator is merged. This also reworks sdlmusic.cpp into music_external.cpp, including an untested port of the code to Windows.
 
8174 258d 20h terminx /source/build/src/winbits.cpp Significant reworks to everything in winbits.cpp

Important cvars after this commit:

sys_timer
win_systemtimermode
win_priorityclass
 
8172 258d 20h terminx /source/build/src/winbits.cpp Add cvar to control ntdll.dll timer voodoo  
8162 258d 20h terminx /source/build/src/winbits.cpp Remove obsolete win_uninit() function  
8147 258d 20h terminx /source/build/src/winbits.cpp Increase timer resolution on Windows  
8146 258d 20h terminx /source/build/src/winbits.cpp Remove win_allowtaskswitching()

We weren't ever calling win_allowtaskswitching(0) anywhere, and when I tried it, it did not work. Broken functionality to try and block alt + tab is not necessary.
 
7976 326d 5h terminx /source/build/src/winbits.cpp Replace separate timer implementations in SDL and Winlayer with a shared implementation based on std::chrono  
7912 331d 21h terminx /source/build/src/winbits.cpp Tweak how the semaphore used to detect multiple running copies of the game is utilized  

Show All