View Single Post
Old 04 May 2021, 02:45   #28
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,810
Quote:
Originally Posted by mcgeezer View Post
As I've tried to explain... I am short on chip ram, I don't want to allocate upwards of 64kb for a bitmap when I already have that ram available in a previous allocation to load and unpack files from.
You don't have to. If you already have the raw bitplane data in chipmem ready for displaying, then you can tell OpenScreen()/OpenScreenTagList() to use that memory for opening the screen instead of having it allocate memory itself.

Alternatively, you can let OpenScreen()/OpenScreenTagList() allocate the memory, and then you can simply load/unpack the bitmap directly to that allocated memory (note that these functions don't necessarily allocate one chunk of memory, but can allocate each bitplane separately when memory is fragmented).

Both these methods require no extra memory and are much easier than setting up a screen from scratch.

This is probably what Thomas Richter was trying to explain.
Thorham is offline  
 
Page generated in 0.04400 seconds with 11 queries