Opened 22 years ago

Closed 22 years ago

Last modified 6 years ago

#8129 closed patch

SIMON: Improving startup times

Reported by: eriktorbjorn Owned by: SF/ender
Priority: normal Component: Engine: AGOS
Version: Keywords:
Cc: Game: Simon the Sorcerer 1


When using MP3-compressed sound, starting a Simon game takes a lot of time, relatively speaking. This patch attempts to fix that, and at least for me the difference can be several seconds.

What it does is to replace the loops that read the entire sound/effects file, in 2 Kb blocks, until it finds the end of the file, with a single seek(0, SEEK_END).

Ticket imported from: #638809. Ticket imported from: patches/234.

Attachments (1)

simon-startup.diff (1.3 KB ) - added by eriktorbjorn 22 years ago.
Patch against a November 14 CVS snapshot

Download all attachments as: .zip

Change History (4)

by eriktorbjorn, 22 years ago

Attachment: simon-startup.diff added

Patch against a November 14 CVS snapshot

comment:1 by SF/ender, 22 years ago

Owner: set to SF/ender
Status: newclosed

comment:2 by SF/ender, 22 years ago

.. what idiot wrote that other code? What a silly way to find a files length! :)


comment:3 by digitall, 6 years ago

Component: Engine: AGOS
Game: Simon the Sorcerer 1
Note: See TracTickets for help on using tickets.