Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does memFree really need OS? #131

Open
4 of 9 tasks
tehKaiN opened this issue Oct 7, 2020 · 2 comments
Open
4 of 9 tasks

Does memFree really need OS? #131

tehKaiN opened this issue Oct 7, 2020 · 2 comments
Labels
Easy Good starting point if you want to help enhancement help wanted question

Comments

@tehKaiN
Copy link
Member

tehKaiN commented Oct 7, 2020

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

  • Create a test which repeatedly allocates deallocates memory
    • Deallocate CHIP mem
    • Deallocate FAST mem
    • Launch when OS is fresh
    • Launch after OS have had its memory almost full and then freed some things
  • Check on KS1.3 when booting exe directly from startup sequence
  • Check on KS1.3 when launching from OS
  • Check on KS2.0
  • Check on KS 3.1
@tehKaiN tehKaiN added enhancement help wanted question Easy Good starting point if you want to help labels Oct 7, 2020
@tehKaiN
Copy link
Member Author

tehKaiN commented Oct 20, 2020

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
Copy link
Contributor

I built my custom ACE with this modifications:

  • memory.c : systemuse() and systemunuse() commented out inside void *_memAllocRls(ULONG ulSize, ULONG ulFlags) and void _memFreeRls(void *pMem, ULONG ulSize)

  • bitmap.c : systemuse() and systemunuse() commented out inside void bitmapDestroy(tBitMap *pBitMap)

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

@tehKaiN tehKaiN changed the title Does memFree really needs OS? Does memFree really need OS? Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy Good starting point if you want to help enhancement help wanted question
Projects
None yet
Development

No branches or pull requests

2 participants