AmigaPorts / ACE

Amiga C Engine
Mozilla Public License 2.0
155 stars 26 forks source link

Does memFree really need OS? #131

Open tehKaiN opened 3 years ago

tehKaiN commented 3 years ago

Apparently calling FreeMem when OS is disabled doesn't crash the system. Calling systemUse() could be avoided to improve performance.

tehKaiN commented 3 years ago

I've built GermZ without enabling OS for allocations - there were only 10 allocs of that kind, but the game ran stable on KS1.3 512+512 from HDD.

Ozzyboshi commented 3 years ago

I built my custom ACE with this modifications:

The final executable works just fine on my amigas compiling and linking with -mcrt=nix13 (both ace and my demo), since there are very big blocks of allocs and deallocs (192K) I am very optimistic that systemunuse()/use() can be avoided.

Tested on: Real a600 + ks 2.4 (2mb chip+2mb fast) Emulated A1200 + ks 3.1 (2mb chip + 8 mb fast) Real 500 plus with aca 500 plus + ks 1.3