2001-07-10  Matt Hargett  <[EMAIL PROTECTED]>

    * kernel.c (kGetTime): Wrap time calls in timeBeginPeriod and
timeEndPeriod
    to increase timer resolution.

    * gfx_test.c (sci_gettime): Ditto.

    * tools.c (sci_gettime): Ditto.

    * operations.c: Initialize pointers to NULL upon declaration.

    * resmgr.c: Ditto.

    * dd_driver.cpp: Fix build.

    * decompress1.c: Small readability tweak.

    * usleep.c: Just use Sleep. This should probably just be a #define
usleep(x) Sleep                (x /1000) somewhere.

    * freesci.dsw: Got rid of vocabdump and sciunpack.

    * freesci.dsp: Optimize for file size, HAVE_DDRAW now defined.

    * sciv.dsp: Ditto.



NOTE: Ignore the midiout_win32mci.c update, nothing has really changed.
DirectDraw driver is a total mess -- I've been reading a DirectX book and this
code seems overly complicated and convoluted. I'm thinking of "porting"
Sarien's GDI driver, since it makes more sense to me. This includes the "slow
sound" definitive fixes.

Next problems on win32 to tackle are:

1. savegame files contain no stack, and restoring them causes a crash.
2. sciv still uses 95-100% CPU all the time. Sarien only uses 1-2%. Need to
investigate and suggest/implement fix.

Any help on these would be greatly appreciated. The savegame one is especially
hard,
because the CFSML really confuses the debuggers I've tried and it can't figure
out what is happening where. There are definitely uninitialized memory reads
and invalid pointer reads/writes happening.



-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: freesci.diff


-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: freesci.dsw


-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: freesci.dsp


-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: sciv.dsp



Reply via email to