Skip to content

Commit a283a7f

Browse files
author
qbix79
committed
When downscaling multiple times in a raw, ensure a minimum amount of strength
git-svn-id: http://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4041 ed541006-0bf7-43e9-8c4d-6fc63c346d47
1 parent 49082bc commit a283a7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/dosbox.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ void increaseticks() { //Make it return ticksRemain and set it in the function a
245245
if (ticksScheduled >= 250 && ticksDone < 10 && ratio > 5120 && CPU_CycleMax > 50000)
246246
ratio = 5120;
247247

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+
248252
if (ratio <= 1024) {
249253
double r = 2.0 /(1.0 + 1024.0/(static_cast<double>(ratio)));
250254
new_cmax = 1 + static_cast<Bit32s>(CPU_CycleMax * r);

0 commit comments

Comments
 (0)