English Amiga Board

Go Back   English Amiga Board > Coders > Coders. System

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

Join Date: Oct 2017
Location: Sunderland, England
Posts: 1,131
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.

mcgeezer is offline  
Old 30 March 2018, 21:30   #2
Minuous's Avatar
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 1,938
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, 21:32   #3
Total Chaos forever!

Samurai_Crow's Avatar
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 44
Posts: 1,235
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 00:49
AmiDEVcpp: Allocating gfxdata in chip mem tolkien Coders. C/C++ 9 22 April 2013 20:21
Problem allocating some memory CmdrVimes Coders. General 4 03 September 2010 23:23
Allocating Fast RAM as Chip? Fingerlickin_B support.Hardware 22 20 November 2008 22:15
A600 Not allocating full 1mb FOL support.Hardware 24 18 October 2008 13: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 16:56.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.05896 seconds with 13 queries