Demo of the RLE video mode

Use this forum to share and discuss Uzebox games and demos.
Post Reply
CunningFellow
Posts: 1174
Joined: Mon Feb 11, 2013 8:08 am
Location: Brisbane, Australia

Demo of the RLE video mode

Post by CunningFellow » Mon Dec 31, 2018 11:08 am

The rotations are "canned" data.

I did all the maths on the PC and just cut and pasted the lines into the Uzebox C code.

This is not because the Uzebox does not have the horses to do the calculations, but because I am lazy and gave up on trying to debug the problems I was having doing it all on the Uzebox. I want to just push the demo and get on with other stuff.

Hopefully you will all think it is amazing :)
Attachments
RLE_Demo.uze
(33.03 KiB) Downloaded 114 times

User avatar
Jubatian
Posts: 1355
Joined: Thu Oct 01, 2015 9:44 pm
Location: Hungary
Contact:

Re: Demo of the RLE video mode

Post by Jubatian » Mon Dec 31, 2018 2:22 pm

Huh, now this is starting to look super-wild! :)

Looking at the memory activity this looks even more wild as it is rather clear that the whole object is never represented at once as an RLE image. It is some 200 pixels tall, and the necessary ~600-800 bytes of RAM consumption isn't showing anywhere, which is awesome.

Wonder how a more final approach would look like on terms of mechanics, which would be the stage, data representation what could be hurled at the race ahead the beam solution to produce the RLE input on the fly.

User avatar
Artcfox
Posts: 944
Joined: Thu Jun 04, 2015 5:35 pm
Contact:

Re: Demo of the RLE video mode

Post by Artcfox » Mon Dec 31, 2018 7:34 pm

Woah! This looks awesome! I can't wait to see the kind of games you come up with.

User avatar
nicksen782
Posts: 667
Joined: Wed Feb 01, 2012 8:23 pm
Location: Detroit, United States
Contact:

Re: Demo of the RLE video mode

Post by nicksen782 » Mon Dec 31, 2018 8:22 pm

... stuff just got REAL!

Does this use SPIRAM?

CunningFellow
Posts: 1174
Joined: Mon Feb 11, 2013 8:08 am
Location: Brisbane, Australia

Re: Demo of the RLE video mode

Post by CunningFellow » Mon Dec 31, 2018 10:36 pm

nicksen782 wrote:
Mon Dec 31, 2018 8:22 pm
Does this use SPIRAM?
No - I am not enthusiastic about the SPI RAM. It is too slow to be used for frantic fast moving stuff which is kinda my gig.
Artcfox wrote:
Mon Dec 31, 2018 7:34 pm
Woah! This looks awesome! I can't wait to see the kind of games you come up with.
Thanks. The plan is still SuperHexagon. This demo was just to show off the underlying RLE mode. I had too many bugs in my 3D code to make even a simple game with it so I cheated with the canned data. The problems are not insurmountable if someone else wants to make Elite. I was just getting bored and I want to move onto the new "super sprite" video mode. That one is going to make you say "Woah!" in all capital letters with several exclamation marks :)
Jubatian wrote:
Mon Dec 31, 2018 2:22 pm
Huh, now this is starting to look super-wild! :)

Looking at the memory activity this looks even more wild as it is rather clear that the whole object is never represented at once as an RLE image. It is some 200 pixels tall, and the necessary ~600-800 bytes of RAM consumption isn't showing anywhere, which is awesome.

Wonder how a more final approach would look like on terms of mechanics, which would be the stage, data representation what could be hurled at the race ahead the beam solution to produce the RLE input on the fly.
The RLE RAM is a fixed 256 byte circular buffer. It starts the screen empty and then stays 100% full till the end.

Most of the RAM is reserved for the lines linked list. This is 2 Kilobytes or 256 x 8 byte lines that can be drawn on the screen. So the maximum number of lines on the screen is 256. You can see the lines linked list grows and shrinks depending on what is shown on the screen. When the bottom of the ship is visible (only 3 polygons) the linked list is almost empty. When the ship is viewed from the top with the back showing a bit (as in below picture) the linked list takes almost a whole 256 byte block.
RamUsage.gif
RamUsage.gif (25.13 KiB) Viewed 1762 times
If you look this (dot)UZE file that has 3 static ships on the screen you can see that the RAM usage is still very low.
ThreeShips.gif
ThreeShips.gif (26.81 KiB) Viewed 1762 times
Attachments
RLE_Demo.uze
(33.28 KiB) Downloaded 71 times

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests