We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49082bc commit a283a7fCopy full SHA for a283a7f
src/dosbox.cpp
@@ -245,6 +245,10 @@ void increaseticks() { //Make it return ticksRemain and set it in the function a
245
if (ticksScheduled >= 250 && ticksDone < 10 && ratio > 5120 && CPU_CycleMax > 50000)
246
ratio = 5120;
247
248
+ // When downscaling multiple times in a row, ensure a minimum amount of downscaling
249
+ if (ticksAdded > 15 && ticksScheduled >= 5 && ticksScheduled <= 20 && ratio > 800)
250
+ ratio = 800;
251
+
252
if (ratio <= 1024) {
253
double r = 2.0 /(1.0 + 1024.0/(static_cast<double>(ratio)));
254
new_cmax = 1 + static_cast<Bit32s>(CPU_CycleMax * r);
0 commit comments