about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-11-19 11:22:59 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-11-19 11:22:59 +0100
commit3533db97ff091ee3950621f1fec60f438a9502b6 (patch)
tree13e76b6d6323a4ca005097af8748cc12dfdaca89 /src/main.c
parent7888cae6c79ace9e561fcdf21abbd81e83e9904a (diff)
downloadbox64-3533db97ff091ee3950621f1fec60f438a9502b6.tar.gz
box64-3533db97ff091ee3950621f1fec60f438a9502b6.zip
[DYNAREC] Reduce performance impact of StrongMem, and added old Strongmem method as BOX64_DYNAREC_STRONGMEM=2
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index c5719f4e..cc48eb14 100755
--- a/src/main.c
+++ b/src/main.c
@@ -276,11 +276,11 @@ void LoadLogEnv()
     p = getenv("BOX64_DYNAREC_STRONGMEM");
     if(p) {
         if(strlen(p)==1) {
-            if(p[0]>='0' && p[0]<='1')
+            if(p[0]>='0' && p[0]<='2')
                 box64_dynarec_strongmem = p[0]-'0';
         }
         if(box64_dynarec_strongmem)
-        printf_log(LOG_INFO, "Dynarec will try to emulate a strong memory model\n");
+        printf_log(LOG_INFO, "Dynarec will try to emulate a strong memory model%s\n", (box64_dynarec_strongmem==1)?" with limited performace loss":"");
     }
     p = getenv("BOX64_NODYNAREC");
     if(p) {