New demo uploaded: STNICCC Commander X16 Demo Remake

All aspects of programming on the Commander X16.
Jeffrey
Posts: 60
Joined: Fri Feb 19, 2021 9:46 am

New demo uploaded: STNICCC Commander X16 Demo Remake

Post by Jeffrey »



2 hours ago, mobluse said:




When do start measuring the time? Is it from start of program or e.g. from when OXYGENE is shown?



 



It is a bit faster on second run: about 68% of full speed on my computer.



I start measuring time when the 3D part starts (the word "Oxygene" in yellow).

Apperently this really pushes the limits of even the emulator: it has to work quite hard ;).

User avatar
AndyMt
Posts: 326
Joined: Sun Jun 21, 2020 3:02 pm
Location: Switzerland

New demo uploaded: STNICCC Commander X16 Demo Remake

Post by AndyMt »


I'm really impressed by this, just wow ?! A Wipeout style game could be in reach with the cx16. That's so impressive.

ZeroByte
Posts: 714
Joined: Wed Feb 10, 2021 2:40 pm

New demo uploaded: STNICCC Commander X16 Demo Remake

Post by ZeroByte »



36 minutes ago, AndyMt said:




A Wipeout style game could be in reach with the cx16. That's so impressive.



Hmmmm - good point. And it's good the X16 has a sound chip that's not behind the vera ports, so you can have sound w/o injecting a lot of overhead moving the data ports back to the PSG registers. Plus, Atari arcade games used FM sound anyway, so it'd be pretty period-accurate to boot.

 

User avatar
AndyMt
Posts: 326
Joined: Sun Jun 21, 2020 3:02 pm
Location: Switzerland

New demo uploaded: STNICCC Commander X16 Demo Remake

Post by AndyMt »


I understood that there is no 3d calculations involved. But for Wipeout those might not be needed if we accept some limitations. The course would be pre-calculated (as is the demo) and the perspective would be fixed to a virtual observer following the player in the middle of the course.

Tricky would be rendering the player and opponent pods... maybe Spites (ugly)?

Or pre-calculated polygons for each object for let's say 10 different distances (more cpu cycles)?

ZeroByte
Posts: 714
Joined: Wed Feb 10, 2021 2:40 pm

New demo uploaded: STNICCC Commander X16 Demo Remake

Post by ZeroByte »


I'd say that using sprites isn't as big a problem if they're drawn in such a way that fits stylistically.

ZeroByte
Posts: 714
Joined: Wed Feb 10, 2021 2:40 pm

New demo uploaded: STNICCC Commander X16 Demo Remake

Post by ZeroByte »



7 hours ago, Jeffrey said:




I start measuring time when the 3D part starts (the word "Oxygene" in yellow).



I was looking at the audio.asm and noticed that your IRQ handler uses PHA, TXA, PHA, TYA, PHA, and not just direct PHA PHX PHY - not that 4 cycles per frame is going to make a huge difference, but I think the initial portion of the ROM handler has already done the PHA PHX PHY before doing the JSR ($0314) so you can get away without even doing that, and the Kernal pops them back as well, so you don't need to spend the cycles saving the CPU registers at all - unless I'm missing something. Also, if not all of the Kernal's per-VBLANK routines are needed, then you could just JSR the ones you need in your own handler and not JMP to the Kernal's handler at all (for instance, you could skip the KBD/Joystick polling for a decent number of clock cycles back.)

Not sure how these savings would stack up in the grand scheme, but it might end up being several frames of time over the course of the entire demo run.

Edit: Although, I don't know if giving the main program a few hundred extra cycles would make any difference. I just thought I'd mention some potential "free" savings by disabling kernal routines that you don't need in case it helps. Awesome job, man!

izb
Posts: 31
Joined: Thu May 21, 2020 10:04 am

New demo uploaded: STNICCC Commander X16 Demo Remake

Post by izb »

That is amazing!


Sent from my iPhone using Tapatalk
User avatar
svenvandevelde
Posts: 488
Joined: Wed Dec 23, 2020 6:30 am
Location: Belgium, Antwerpen

New demo uploaded: STNICCC Commander X16 Demo Remake

Post by svenvandevelde »


.

KICKC home page by Jesper Gravgaard.
My KICKC alpha with Commander X16 extensions.
Ed Minchau
Posts: 503
Joined: Sat Jul 11, 2020 3:30 pm

New demo uploaded: STNICCC Commander X16 Demo Remake

Post by Ed Minchau »



On 5/21/2021 at 8:13 AM, DrTypo said:




On my computer (core i7 8700k), on the second execution it does take 1:39 from OXYGENE to the end.



On the first execution there are slow downs.



Yes it would have been nice to have an actual 256 pixels wide screen mode on VERA.



There can be a sort of 256 pixel wide mode. 255 pixels actually,  if the HSCALE is set to $33. Just use 8x8 tiles and set the tile map to 32 tiles wide. Admittedly this isn't a bitmap mode and would take some fiddling but it can be done. 

a9m
Posts: 11
Joined: Wed Jul 22, 2020 5:37 am

New demo uploaded: STNICCC Commander X16 Demo Remake

Post by a9m »


Very impressive! Coming from someone who wrote a Gameboy Color port of it. (spoiler: it took 3:32 to finish due to its horrible VRAM layout and access)

Post Reply