Page 2 of 2

Re: Ascii Moon Buggy

Posted: Mon Oct 08, 2018 9:34 pm
by rax
Thanks Dbug,

i could use macros for "getpos". "deleteObject" I never used it.

I was thinking of making a linked list, but I had to impress several complementary functions and thought I could go without it. I will try it. Engine.c wrote it before I even had a game idea.

I will test the performance of "if (objects .active)".

I have the following question: "How does malloc work here and have the slightest chance to use it?"

Regards :)

Re: Ascii Moon Buggy

Posted: Mon Oct 08, 2018 10:04 pm
by Chema
I used dynamic memory allocation extensively when developing Pinforic. Although it was before the OSDK times, and before the switch from frasm to XA as assembler, if the library did not change, it should work ok.

Re: Ascii Moon Buggy

Posted: Tue Oct 09, 2018 7:23 am
by Dbug
The lib has not changed in years, I don't use dynamic allocation on the Oric for performance reason, but the code is there, so it most probably works.
If it does not, then please make me a minimal repro-case so I can fix it :)

Re: Ascii Moon Buggy

Posted: Thu Oct 11, 2018 9:23 pm
by rax
Thank you both of you :)