#8049 closed patch
drawBomp() rewrite
Reported by: | eriktorbjorn | Owned by: | SF/ender |
---|---|---|---|
Priority: | normal | Component: | Engine: SCUMM |
Version: | Keywords: | ||
Cc: | Game: | Sam and Max |
Description
This is an attempt at rewriting drawBomp() so that it handles scaling (needed for the highway surfing in Sam & Max) and blending (needed for the inventory and command menus in The Dig).
The scaling algorithm is pretty stupid, but as long as it's only used for things that go by pretty quickly, it should be good enough. The blending will need some tuning since all I have to compare it to is the stamp-sized screenshot in the Dig manual.
Unlike the current version of drawBomp(), this version assumes it always has to take scaling, clipping, etc. into consideration, so it's slower. Maybe noticeably so. But I don't want to add optimizations of questionable worth until I'm pretty sure the basics are working correctly.
A more noticeable optimization would probably be if it could be taught to only redraw the dirty areas of the screen. For instance, when looking at the inventory in The Dig it appears the entire inventory window is redrawn every scummLoop iteration. Without a blend cache this would be painfully slow.
(Speaking of which, with this patch drawBlastObject() probably dirties too much of the screen in the scaled case. How come drawBomp() isn't the one responsible for calling updateDirtyRect()?)
Ticket imported from: #609563. Ticket imported from: patches/154.
Attachments (1)
Change History (5)
by , 22 years ago
Attachment: | drawbomp.diff added |
---|
comment:1 by , 22 years ago
Owner: | set to |
---|
comment:3 by , 22 years ago
Status: | new → closed |
---|
comment:4 by , 6 years ago
Component: | → Engine: SCUMM |
---|---|
Game: | → Sam and Max |
Patch against a September 14 CVS snapshot