KEMBAR78
IMAGE: Speed up 16/24/32bpp BMP decoding by ccawley2011 · Pull Request #4937 · scummvm/scummvm · GitHub
Skip to content

Conversation

@ccawley2011
Copy link
Member

Most engines already convert the image to the current screen format after loading, so this avoids intermediate conversions and allows reading entire rows in one go.

@sev-
Copy link
Member

sev- commented Apr 29, 2023

Yes, I think, this could be merged early and then the relevant engines fixed if they were not checking the returned format

@sev- sev- marked this pull request as ready for review May 14, 2023 20:53
@sev-
Copy link
Member

sev- commented May 14, 2023

Okay, merging before it gets bitrot.

@sev- sev- merged commit b458ced into scummvm:master May 14, 2023
@dwatteau
Copy link
Contributor

FWIW, on an old Loongson 2F mips64el CPU (@ 797 MHz), this PR makes loading the art/clouds.bmp file from The Griffon Legend considerably faster 👍

  • Before: 14.88s
  • After: 0.39s

so nearly a 75% performance improvement! The game now starts much faster there. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants