Ultimate Amiga
Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Professional Forum => Topic started by: Doma on January 06, 2019, 07:10:18 PM
-
Hello
Quick question. I am a beginner when it comes to AMOS.
I have noticed that when I program a bit, the program takes up more and more RAM.
Now that is all well and fine.
The thing is that once I test-run it a few times it might use up all my "Chip-RAM".
Once it does that I will get a "out of memory" error.
The thing is, I have a ton of FAST-Ram availible.
How come it does not use the fast-ram?
It is probably just something I am misunderstanding. I am running an A500 with 1MB Chip-RAM and 8MB Fast RAM. AMOS Pro running of an A590 HDD.
-
Could it be that you are loading sprite images somewhere in your program?
In that case you must remember to erase them (Erase All or maybe just Erase 1) before the end, otherwise the loaded images will be stacked with those from the previous run(s).
-
Also (if you are checking at runtime)
Screen Open ravages chip-ram and Double Buffer doubles it!!!
-
Sound samples also load into Chip RAM. Chip RAM is like the right hemisphere of the brain. Fast RAM is only accessible by the CPU so it holds only code and data.
-
Hi:
When you start amospro, the ram buffer is only like 32 k available, no matter
how much ram you got in your machine. If you go to 'editor' menu and select
'set text buffer' you can adjust the ram, just input 100000 and then amos
has 100 k available of ram to use. You can input as much ram as you want
provided you have enough fast ram in your amiga. Is very easy, you just
allocate the exra ram you need in the text buffer.
-
Hi:
When you start amospro, the ram buffer is only like 32 k available, no matter
how much ram you got in your machine. If you go to 'editor' menu and select
'set text buffer' you can adjust the ram, just input 100000 and then amos
has 100 k available of ram to use. You can input as much ram as you want
provided you have enough fast ram in your amiga. Is very easy, you just
allocate the exra ram you need in the text buffer.
Aah! Thanks mate! Will try that!
-
The only ways I've managed to create an "Out of memory" error has either been by using Screen Open or the Load instruction, and the medicine in those cases are either to use Screen Close or some variant of Erase (if this doesn't suffice, then a bit of redesigning is most likely in order ;)).
When you start amospro, the ram buffer is only like 32 k available, no matter
how much ram you got in your machine. If you go to 'editor' menu and select
'set text buffer' you can adjust the ram, just input 100000 and then amos
has 100 k available of ram to use.
This is what must be done in case an "Out of buffer space" error occurs, but I don't think that was the issue here. (This value is the limit of the amount of text that can be put in the editor. Increasing it doesn't increase the amount of RAM that can be used by the programs written in AMOS, rather the opposite actually.)
-
Hi:
When you start amospro, the ram buffer is only like 32 k available, no matter
how much ram you got in your machine. If you go to 'editor' menu and select
'set text buffer' you can adjust the ram, just input 100000 and then amos
has 100 k available of ram to use. You can input as much ram as you want
provided you have enough fast ram in your amiga. Is very easy, you just
allocate the exra ram you need in the text buffer.
I also have this problem. even if I increase the buffer, I can't edit my banks (8MO CHIP + 128MO FAST).