Skip to content

Commit

Permalink
Prevent config being saved every frame
Browse files Browse the repository at this point in the history
fixes the occasional freezing that some people experience
  • Loading branch information
DrBeef committed Apr 8, 2024
1 parent 6e119d9 commit 6977676
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Projects/Android/jni/OpenJK/code/qcommon/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ void Com_Frame( void ) {
TBXR_FrameSetup();

// write config file if anything changed
Com_WriteConfiguration();
//Com_WriteConfiguration();

//
// main event loop
Expand Down Expand Up @@ -1571,6 +1571,10 @@ Com_Shutdown
=================
*/
void Com_Shutdown (void) {

// write config file if anything changed
Com_WriteConfiguration();

CM_ClearMap();

if (logfile) {
Expand Down

0 comments on commit 6977676

Please sign in to comment.