Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Xenon 2 Megablast Port
#8
@Napomex,

https://drive.google.com/file/d/1pFuWAEL...sp=sharing

A version with some std optimizations:
.move some computation:
- only where they can be used to avoid them if tests avoid this code to be reached
- outside a (inner)loop to make it only once if possible
. use some #define for "inlining" calls (to avoid stack push/pop), for example:
#define UnsetSprite(SpriteNo) SpriteControl(SpriteNo, SPR_OFF, 0)
to remove from the lib...
. try to avoid mul/div in loops too (but note that use of multi-dim arrays add "mul" instructions)

I didn't apply this principals in all the code, maybe you can take a look at it and take what you want and apply some idea where you want.
Not tested on HW yet, only emus (vdmgr & ngpcraft)
I'll continue to investigate later this week-end.
Reply


Messages In This Thread
Xenon 2 Megablast Port - by Napomex - 07-17-2026, 04:59 AM
RE: Xenon 2 Megablast Port - by Ahchay - 07-17-2026, 06:24 AM
RE: Xenon 2 Megablast Port - by sodthor - 07-17-2026, 06:45 PM
RE: Xenon 2 Megablast Port - by Ahchay - 07-17-2026, 07:28 PM
RE: Xenon 2 Megablast Port - by Napomex - 07-18-2026, 08:44 AM
RE: Xenon 2 Megablast Port - by Napomex - 07-31-2026, 06:24 AM
RE: Xenon 2 Megablast Port - by sodthor - 07-31-2026, 04:55 PM
RE: Xenon 2 Megablast Port - by sodthor - 08-01-2026, 06:30 AM
RE: Xenon 2 Megablast Port - by Napomex - 08-01-2026, 07:35 AM
RE: Xenon 2 Megablast Port - by sodthor - 08-02-2026, 03:27 AM
RE: Xenon 2 Megablast Port - by sodthor - 08-02-2026, 03:45 AM
RE: Xenon 2 Megablast Port - by Napomex - 08-02-2026, 07:19 AM
RE: Xenon 2 Megablast Port - by sodthor - 08-03-2026, 01:07 AM
RE: Xenon 2 Megablast Port - by Napomex - 08-03-2026, 05:43 AM
RE: Xenon 2 Megablast Port - by Napomex - 08-05-2026, 04:07 AM
RE: Xenon 2 Megablast Port - by sodthor - 08-05-2026, 06:10 AM
RE: Xenon 2 Megablast Port - by Ahchay - 08-05-2026, 05:24 PM
RE: Xenon 2 Megablast Port - by sodthor - 08-05-2026, 11:39 PM
RE: Xenon 2 Megablast Port - by Ahchay - Yesterday, 03:50 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)