From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ralf Engels Subject: dosemu too fast Date: Thu, 6 May 2004 15:57:01 +0200 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <200405061557.01266.ralf-engels@gmx.de> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-msdos@vger.kernel.org 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