Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: AMOS Pro 2.0 RAM Usage question  (Read 5518 times)

0 Members and 1 Guest are viewing this topic.

Doma

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
  • Amiga 500 user.
AMOS Pro 2.0 RAM Usage question
« 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.
Logged

adrazar

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 69
  • Generic Amiga User
Re: AMOS Pro 2.0 RAM Usage question
« Reply #1 on: January 07, 2019, 07:09:45 PM »

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

Volvo_0ne

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
  • A1200 lover
Re: AMOS Pro 2.0 RAM Usage question
« Reply #2 on: January 07, 2019, 10:53:34 PM »

Also (if you are checking at runtime)

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

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

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: AMOS Pro 2.0 RAM Usage question
« Reply #3 on: January 10, 2019, 06:28:29 PM »

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

rednova

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 225
    • http://www.feryogi.com
Re: AMOS Pro 2.0 RAM Usage question
« Reply #4 on: January 12, 2019, 01:43:07 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.
Logged
-mobilis in mobile-

Doma

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
  • Amiga 500 user.
Re: AMOS Pro 2.0 RAM Usage question
« Reply #5 on: January 12, 2019, 05:46:21 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!
Logged

adrazar

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 69
  • Generic Amiga User
Re: AMOS Pro 2.0 RAM Usage question
« Reply #6 on: January 13, 2019, 12:19:31 AM »

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.)
« Last Edit: January 13, 2019, 12:25:59 AM by adrazar »
Logged

DarkN3mo

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 22
  • Generic Amiga User
Re: AMOS Pro 2.0 RAM Usage question
« Reply #7 on: July 21, 2023, 05:09:08 AM »

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).
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022