A very Windows 10 update


Recently, the bad behaviour of the Windows 95 version became apparent when trying it on a newer, Windows 10 machine. The game ran, but the window would never appear - and when it did, it was simply too damn fast.

The crux of the question was this call:

MoveWindow(HWnd,
           CW_USEDEFAULT,
           CW_USEDEFAULT,
           window_rect.right - window_rect.left,
           window_rect.bottom - window_rect.top,
           TRUE
           );

Somehow, it causes the window to misbehave badly.

The fix was simple: for the Windows 10, I simply removed it.

The speed issues required some more code, but nothing special (but that would be too complicated to reproduce here) - but the issue was that each tick was taking 0 milliseconds on a modern-ish (Mac Mini late 2012, running Windows Pro 10, but also a Cedar-Trail Windows 10 Tablet). Making it to sleep for 20ms for each tick did the trick nicely.

Right now, I've tested with those machines about and plus a Mac Mini 2007, also running Windows 10 and my wife's laptop, running Windows 10 on a very cutting edge laptop. The game played very well on all the machines.

Files

The Mistral Report for Windows 10 (Win32 64-bits) 777 kB
Oct 17, 2020

Get The Mistral Report: Invisible Affairs

Leave a comment

Log in with itch.io to leave a comment.