Main Menu

AMOS Pro 2.0 RAM Usage question

Started by Doma, 06 Jan, 2019, 08:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Doma

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.

adrazar

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).

Volvo_0ne

Also (if you are checking at runtime)

Screen Open ravages chip-ram and Double Buffer doubles it!!!

Transuranic heavy elements may not be used where there is life.

SamuraiCrow

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.

rednova

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.
-mobilis in mobile-

Doma

Quote from: rednova on 12 Jan, 2019, 02:43 PM
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!

adrazar

#6
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 ;)).

Quote from: rednova on 12 Jan, 2019, 02:43 PM
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.)

DarkN3mo

Quote from: rednova on 12 Jan, 2019, 02:43 PM
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).