[Kde-games-devel] KGoldrunner problem in Windows

Jarosław Staniek js at iidea.pl
Mon Dec 24 11:03:29 CET 2007


Ian Wadham said the following, On 2007-12-23 23:58:
> On Sun, 23 Dec 2007 08:58 am, Saro Engels wrote:
>> Ian Wadham schrieb:
>>>   "Not unexpected, why?  Because QTimer limitations in Windows have
>>> always worried me.  KGr sets all sorts of fancy and precise QTimers and
>>> intervals, one per runner at least, and the granularity (or lack of) in
>>> Windows clocks would probably not support them.  See the disclaimer in
>>> the QTimer class doco entry."
>>>
>> hm, it works now as it should - definitely not the biggest problem yet.
>>
> Thanks, Saro, for letting me know what happened with KGoldrunner
> graphics, but I am still concerned about QTimer issues in Windows.
> 
> KGr is a highly timing-dependent game with about 200 levels and
> what may appear to work as it should, for a few levels, might fail on
> some of the more time-critical levels [1] ... and obviously I cannot expect
> you to test *all* of them ... ;-)
> 
> OTOH I do not have a Windows-KDE setup, yet.  So can you tell me if
> QTimer granularity is still a problem in Windows XP, 2000 and 2003
> (the versions supported by KDE)?
> 
> The QTimer doco says that Windows 98 supports accuracy of only
> 55 msec.  KGoldrunner would require 5 msec or better, I think.

If this is really a problem, consider dropping support for win 9x unless you 
have paying customers :)

Moreover there are graphics-view components of Qt 4 ([1] and especially [2]) 
that look like more optimized than handcrafted routines based on 
QPainter+QTimer. This is only a guess however - do not know all your specifics.

[1] http://doc.trolltech.com/4.3/graphicsview.html
[2] http://doc.trolltech.com/4.3/qtimeline.html

-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
  KDE Libraries for MS Windows (http://windows.kde.org)



More information about the Kde-windows mailing list