[Ohrrpgce] SVN: teeemcee/8895 Add switch_to_{8, 32}bit_vpages, and combine allocatepage and allocatepag
subversion at HamsterRepublic.com
subversion at HamsterRepublic.com
Mon Jun 19 10:14:57 PDT 2017
teeemcee
2017-06-19 10:14:57 -0700 (Mon, 19 Jun 2017)
691
Add switch_to_{8,32}bit_vpages, and combine allocatepage and allocatepage32
These switch all the video pages to 8 or 32 bits (ie Surface-backed), which
is necessary because you can't draw a Surface-backed Frame onto a videopage
Frame that isn't.
Converting the video pages to 32 bit means that all graphics drawn to them
have to go through an extra layer of remapping as they're drawn, and scaling
up the video page in setvispage becomes slower as well. So it may be too slow
to run a whole game in 32-bit depth
My first was to add a global vpage32 which could be used whenever needed,
but that would mean various functions like multichoice which assume vpage
is used would no longer work.
---
U wip/allmodex.bas
U wip/allmodex.bi
U wip/custom.bas
More information about the Ohrrpgce
mailing list