[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

https://www.youtube.com/watch?v=ie4 u2i_5OdE Can somebody ex

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 14
Thread images: 2

File: 1487674662759.png (297KB, 627x329px) Image search: [Google]
1487674662759.png
297KB, 627x329px
https://www.youtube.com/watch?v=ie4u2i_5OdE
Can somebody explain to me how is it possible to fit so much shit into just 64kb?
>>
>>59047279

Take an Assembly programming class.
>>
>>59047302
So these are written in assembly?
>>
Procedural generation and a butt-load of trial and error.
>>
Magic
>>
File: Screenshot_20170221-131049.png (48KB, 720x1280px) Image search: [Google]
Screenshot_20170221-131049.png
48KB, 720x1280px
>>59047279
meanwhile your average 2d 90% serverside android app with literally no more than 16 colors
>>
>>59047308
Kinda, some does and some does not. Insert No coins from Razor 1911 is written in C (or c++ I don't really remember)
Also they use an executable compressor that shrinks the total source code of 6MB aprox into 64 kb or less
>>
Technically you could fit it into even less if you write an extremely specific compression algorithm, but it would take some time to decompress it so it's not practical.

Remember that German game that was only a 1kb exe that would take 5 minutes to decompress and execute? That's one example
>>
>>59048186
Sorry it was actually 96kb, but still impressive to fit an entire FPS game with sound into a single tiny executable

https://en.wikipedia.org/wiki/.kkrieger
>>
meh. the art is in the compression and storage/loading of assets.
which kind of take the fun out of it and probably not the original intention of these types of competitions
but cool nonetheless.
>>
>>59048228
I'm pretty sure I have a copy of that lying around somewhere.
>>
>>59047279
That one is shaders. All geometry is distance functions and rendering happens with a fast approximation called sphere tracing or "ray marching". Textures, I think are procedural and gpu generated as well. The executable itself leaves all bullshit like standard library out and minimizes boilerplate code. There exist ready made project skeletons that show how the minimum requirements are satisfied in very little space. Basically it's just "open graphics -> open audio -> loop -> take timer -> play synth -> update gpu data (time, textures etc) -> draw a screenful (usually two triangles) with this shader (which does most of the work) -> goto loop". These days almost all actual size limited PC demo code is C or minified shader, and unless you're developing a custom packer, the lowest level details don't need that much attention. Currently the state of the art packer is called Crinkler. Go check out https://in4k.github.io/

How do I know this? I'm an eurofag and I love the scene even though I haven't made anything nearly as cool as these guys. I've met some of the makers of that demo and talked a lot with people.
>>
>>59047279
procedural generation

that is, the program contains the basic rules for generating everything, rather than just storing/having the results ahead of time on disk
>>
>>59047279
Sometimes even 4k is enough.
https://www.youtube.com/watch?v=jB0vBmiTr6o
Thread posts: 14
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.