English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 30 March 2018, 22:24   #1
mcgeezer
Registered User

 
Join Date: Oct 2017
Location: Sunderland, England
Posts: 556
Allocating Memory

Hi all,

I have a quick question around allocating chip memory on Amiga's.

My game requires around 350Kb of chip memory to run.

Will I gain greater compatibility if I ask the system for all 350Kb in one go or is it better to ask for individual small chunks, each related to the size of the
required assets?

Does the Amiga defragment memory to keep large contiguous spaces or am I over thinking this?

Any help appreciated.

Geezer
mcgeezer is offline  
Old 30 March 2018, 22:30   #2
Minuous
Coder/webmaster/gamer
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 1,826
The allocations are more likely to be successful if you ask for individual small chunks. If you ask for a single 350K chunk, it will fail unless a contiguous 350K chunk is available.
Minuous is offline  
Old 30 March 2018, 22:32   #3
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 44
Posts: 1,115
Send a message via Yahoo to Samurai_Crow
> Does the Amiga defragment memory to keep large contiguous spaces or am I over thinking this?

Amiga has massive memory fragmentation problems. Use a few large chunks if possible but avoid requiring a single slab.
Samurai_Crow is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Allocating 0xC00000 memory alpine9000 Coders. Asm / Hardware 39 07 April 2018 01:49
AmiDEVcpp: Allocating gfxdata in chip mem tolkien Coders. C/C++ 9 22 April 2013 21:21
Problem allocating some memory CmdrVimes Coders. General 4 04 September 2010 00:23
Allocating Fast RAM as Chip? Fingerlickin_B support.Hardware 22 20 November 2008 23:15
A600 Not allocating full 1mb FOL support.Hardware 24 18 October 2008 14:02

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:23.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.09468 seconds with 15 queries