Shop OBEX P1 Docs P2 Docs Learn Events
32K is not so bad if you consider what these guys squeeze in to 4k demo — Parallax Forums

32K is not so bad if you consider what these guys squeeze in to 4k demo

tonyp12tonyp12 Posts: 1,951
edited 2011-06-25 10:09 in General Discussion
4k demo Elevated by RGBA and TBC

Select 1080p and go full screen
default.jpg
http://youtu.be/I5CTFMuFvb0

Yes the code is only 4k, as in 4096 bytes
No external files allowed, have to run on a stock Windows PC with 3D video card.

Comments

  • Roy ElthamRoy Eltham Posts: 3,000
    edited 2011-06-24 16:52
    4k compressed. Also, they generate megabytes of data at startup. They also link to system DLLs for doing graphics. It's still impressive, but the actual runtime footprint is MUCH bigger than 4k or 32k.
  • tonyp12tonyp12 Posts: 1,951
    edited 2011-06-24 17:00
    Of course, but even just the dds music routine could fit on to the 4k is astounding.
    The camera movement data and the algorithm to create the fake world, all that in 4096 bytes.
  • Martin_HMartin_H Posts: 4,051
    edited 2011-06-24 17:12
    These guys need to write the remake of Rescue on Fractalus (http://en.wikipedia.org/wiki/Rescue_on_Fractalus). It would be awesome!
  • kwinnkwinn Posts: 8,697
    edited 2011-06-24 22:59
    That is absolutely amazing.
  • HollyMinkowskiHollyMinkowski Posts: 1,398
    edited 2011-06-24 23:11
    That's really cool!

    I kinda enjoy working in a small space, it's a challenge.
    The Tiny85 that I write a lot of code for has just 8kb of flash.
    That gives me a little more than 4000 asm instructions minus
    whatever I use for data tables and such.

    The small space in the prop's hub ram is fun to code as well.
    The few hundred asm instructions seems very limiting but those
    32bit instructions are very powerful! There is amazing potential
    in every word of that hub space, Chip did an amazing job with
    the asm in the prop.
  • localrogerlocalroger Posts: 3,452
    edited 2011-06-25 05:36
    This demo is a very specific example of how fractal math can develop massive, lifelike landscapes from unbelievably simple construction rules. It does require considerable storage and computing power to apply those rules. Another system which forms amazingly complex landscapes by applying a few simple rules over vast amounts of storage and parallel processing is the Universe.
  • davidsaundersdavidsaunders Posts: 1,559
    edited 2011-06-25 09:07
    Nice VOXEL, what did this take, about 1KB asm code and 7KB ram at run time? Voxels are old old news and have been well optimized 4 size, this just shows the speed of the computer on which it runs (you do not need more mem for better VOXELs, just faster processing), I presume that this runs as a stand alone (NO OPERATING SYSTEM) PMODE x86 application using VESA graphics and a specific sound device? Ok because of the function of the x86 CPU maybe as much as 2KB code (PMODE setup is not exactly strait forward as other 32 bit systems).
  • tonyp12tonyp12 Posts: 1,951
    edited 2011-06-25 10:09
    No it uses DX9, but that also comes with library calls overheads that take a chunk out of your 4096 bytes.
    There are no mountain fractals calls in the dll, so that have to be generated.
    That specific angles of mountain will keep snow and some will be bare, has to be calculated.
Sign In or Register to comment.