public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* dosemu too fast
@ 2004-05-06 13:57 Ralf Engels
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Engels @ 2004-05-06 13:57 UTC (permalink / raw)
  To: linux-msdos

Found a solution!
Who want's to implement it for real?

Dosbox was running a little bit too slow and Dosemu was running much too fast 
for playing x-com. 
So I tried to speed up dosbox (no success) and to slow down dosemu.

The following solution seems to be quite good. It does not waste processor 
power and seems to be a general way to slow down almost every dos program 
running in dosemu.

In /src/base/dev/timers.c add the following code to the function timer_tick 
(around line 137)

#endif

  // this function is called every 10 ms, so sleeping for 5ms slows down the 
program by 50%
  usleep(7000); // Ralf 70% slowdown

  /* compute the number of 100ticks since we started */


So, I have no plan to implement this for real, e.g. make a dosemu-option. Who 
want's to do it?

BR,
Ralf

________________________
Ralf Engels
Software design engineer
www.rengels.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: dosemu too fast
@ 2004-05-06 19:25 Stas Sergeev
  0 siblings, 0 replies; 2+ messages in thread
From: Stas Sergeev @ 2004-05-06 19:25 UTC (permalink / raw)
  To: linux-msdos

Hello.

Ralf Engels wrote:
> So, I have no plan to implement this for real, e.g. make a 
> dosemu-option. Who want's to do it?
I made some patches about it but never
got that finished yet.
You can get them here and see whether it
works for you or not:
https://sourceforge.net/tracker/?func=detail&aid=716137&group_id=49784&atid=457450
Those introduce a $_slowdown option but
perhaps require more work as to avoid
the timer bursts and some other nasty
side-effects.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-06 19:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-06 19:25 dosemu too fast Stas Sergeev
  -- strict thread matches above, loose matches on Subject: below --
2004-05-06 13:57 Ralf Engels

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox