#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 |
Description
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)
Change History (4)
by , 22 years ago
Attachment: | simon-startup.diff added |
---|
comment:1 by , 22 years ago
Owner: | set to |
---|---|
Status: | new → closed |
comment:2 by , 22 years ago
.. what idiot wrote that other code? What a silly way to find a files length! :)
Applied.
comment:3 by , 6 years ago
Component: | → Engine: AGOS |
---|---|
Game: | → Simon the Sorcerer 1 |
Note:
See TracTickets
for help on using tickets.
Patch against a November 14 CVS snapshot