Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:31 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: V5.05.04RC14 - performance tuning

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 05:26pm 26 Jul 2020
Copy link to clipboard 
Print this post

V5.05.04RC14

http://geoffg.net/Downloads/Maximite/CMM2_Beta.zip

Significant performance enhancements (c 10%)
More special case code for the EXECUTE command when "executing" the RUN command: It now will interpret the search path and will not tokenise text after the filename literal
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 09:15pm 26 Jul 2020
Copy link to clipboard 
Print this post

Wonderful Peter, I've tested the tokenisation update to EXECUTE and it works.

Thank you,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
MauroXavier
Guru

Joined: 06/03/2016
Location: Brazil
Posts: 303
Posted: 09:34pm 26 Jul 2020
Copy link to clipboard 
Print this post

Incredible performance gain!

From 8.44 FPS to 9.45 FPS on Wolf 3D in a medium demand area (to gain one more single frame per second is a hard task in this game).

And OPTION RAM no more gives a syntax error.

Thanks a lot!
 
mkopack73
Senior Member

Joined: 03/07/2020
Location: United States
Posts: 261
Posted: 02:56am 28 Jul 2020
Copy link to clipboard 
Print this post

Ok, not sure if this is the new spot to report errors...

I'm still on RC 4 but given nobody has reported this I suspect it's still a bug...

if you try to do the following:

sprite read (myvar+1), x,y,width,height,pagenum

it will give the following error:

Error: READ is not declared


Seem like it's not possible to calculate the sprite number in the read command.

I'm wondering if that's why I'm also having problems then trying to do sprite show (myvar+1)  and getting back an Error: Buffer not in use
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 03:03am 28 Jul 2020
Copy link to clipboard 
Print this post

sprite read (myvar+1), x,y,width,height,pagenum


Try removing the brackets:
sprite read myvar+1, x,y,width,height,pagenum


MMBasic is looking for an array called read()

Jim
VK7JH
MMedit
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 04:05am 28 Jul 2020
Copy link to clipboard 
Print this post

A bug for you Peter.

If a variable starts with rem and is the first 'word' on a line, it is treated as a remark.

 remainder=4
 remi = 6
 remo = 8
 PRINT remainder
 PRINT remi
 PRINT remo
 
 DIM remain=4
 f=0 : remi = 6
 IF x = x THEN remo = 8
 PRINT remain
 PRINT remi
 PRINT remo


0
0
0
4
6
8
>


The work-around is to rename the variable.

Jim
VK7JH
MMedit
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 04:19am 28 Jul 2020
Copy link to clipboard 
Print this post

  TassyJim said  If a variable starts with rem and is the first 'word' on a line, it is treated as a remark.

Jim


aha! that would explain why one of the programs i wrote would never work. it was for calculating the remaining space left in a removal truck, and email you a reminder when space was getting low  


cheers,
rob  :-)
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025