• Demoscene
    74 replies, posted
  • Avatar of ralle105
  • I might be crazy but don't these old demos modify VGA memory directly rather than using OpenGL or the likes?
  • Avatar of deloc
  • [QUOTE=iNova;29652345]For me, already a window and opengl clearing it is 4KB :frown:[/QUOTE] [url]http://www.crinkler.net/[/url]
  • Avatar of q3k
  • [QUOTE=garry;29649922]Everyone with an Amiga had this demo.. [hd]http://www.youtube.com/watch?v=fPSst20JEcE[/hd][/QUOTE] I'm sorry, but I think you meant this: [media]http://www.youtube.com/watch?v=kuesTvUYsSc[/media] I still run this demo from time to time on my A500... [url=http://www.pouet.net/prod.php?which=394]pouet link[/url]
  • Avatar of icantread49
  • You wanna use MSVC with full size optimizations and then this: [QUOTE=deloc;29656191][url]http://www.crinkler.net/[/url][/QUOTE] [editline]6th May 2011[/editline] Also no standard library or anything, just use straight win32
  • [QUOTE=q3k;29659047]I'm sorry, but I think you meant this: [media]http://www.youtube.com/watch?v=kuesTvUYsSc[/media] I still run this demo from time to time on my A500... [url=http://www.pouet.net/prod.php?which=394]pouet link[/url][/QUOTE] Around 5 minutes when there's a sphere of 500 points. Is that backface culling? Isn't it like a newer thing?
  • Avatar of deloc
  • [url]http://capped.tv/playeralt.php?vid=1214091572-1-0[/url] probably the greatest amiga aga demo on both a technical and artistic level. [editline]6th May 2011[/editline] [url]http://capped.tv/ephidrena-psylteflesk[/url] and here's a pleasant amiga 4k which i'm only posting to pimp my shitty cap+encode of it.
  • [QUOTE=ralle105;29655497]I might be crazy but don't these old demos modify VGA memory directly rather than using OpenGL or the likes?[/QUOTE] Yes. A fair few used mode 13h which maps about 60KB (320x200) of VRAM into the address space beginning at 0xA0000. Each pixel is one byte, so you have a 256 colour palette to play with. It is possible to talk to the VGA directly and remap colours in the palette to arbitrary RGB values (although you only 6 bits per colour, not 8)
  • [QUOTE=deloc;29660284][url]http://capped.tv/playeralt.php?vid=1214091572-1-0[/url] probably the greatest amiga aga demo on both a technical and artistic level. [/QUOTE] how is that even possible in 4 kb?
  • Avatar of iNova
  • Incoming boxes, but I'm new to the native compiling scene and I can't work out how to use crinkler with TCC, anyone mind helping?
  • Avatar of q3k
  • Why did everyone suddenly decide TCC is the best compiler for demos / size optimized executables? It's not!
  • Avatar of iNova
  • [QUOTE=q3k;29669654]Why did everyone suddenly decide TCC is the best compiler for demos / size optimized executables? It's not![/QUOTE] Everyone? It's only me using it! Everyone else is suggesting me to use other compilers with full size optimization and stuff, but I'm just that retarded and confused that I stick to TCC :v:
  • Avatar of iNova
  • [QUOTE=Darwin226;29669729]But... but... IT'S TINY![/QUOTE] I don't know why zeeky said it's probably not meant to optimize size.. that's one of its goals.
  • Avatar of Richy19
  • [QUOTE=q3k;29669654]Why did everyone suddenly decide TCC is the best compiler for demos / size optimized executables? It's not![/QUOTE] Its the easiest to use tho, I just tried compiling hello world with gcc and the commands -Os -fno-inline -nostdinc -fomit-frame-pointer as told in the WDYNHW thread and it says it cant fint stdio.h using -Os only made the exe 19kb while tcc makes it 1.2kb
  • Avatar of ThePuska
  • If you included -s in that list of commands, or ran strip yourself after gcc, you would notice that the filesize drops significantly. GCC gave me something like 6kb without much work on my part, the same as Visual C++ without any extra work. Replacing Visual C++'s linker with Crinkler dropped the filesize below 1kb. edit: This without any previous experience with GCC or Visual C++ or even the C language
  • Avatar of iNova
  • [QUOTE=Richy19;29669878]Its the easiest to use tho, I just tried compiling hello world with gcc and the commands -Os -fno-inline -nostdinc -fomit-frame-pointer as told in the WDYNHW thread and it says it cant fint stdio.h using -Os only made the exe 19kb while tcc makes it 1.2kb[/QUOTE] [QUOTE]-nostdinc[/QUOTE] [QUOTE]it cant fint stdio.h[/QUOTE] lol [editline]7th May 2011[/editline] if you don't get the hint, -nostdinc means no standard library inclusion meaning it's not supposed to find stdio.h with that option.
  • Avatar of Richy19
  • [QUOTE=iNova;29669907]lol [editline]7th May 2011[/editline] if you don't get the hint, -nostdinc means no standard library inclusion meaning it's not supposed to find stdio.h with that option.[/QUOTE] Haha yea i got that, but in that case its a pointles command. Most if not all programs would use the standard library somewhere.
  • Avatar of q3k
  • [QUOTE=Richy19;29669878]Its the easiest to use tho, I just tried compiling hello world with gcc and the commands -Os -fno-inline -nostdinc -fomit-frame-pointer as told in the WDYNHW thread and it says it cant fint stdio.h using -Os only made the exe 19kb while tcc makes it 1.2kb[/QUOTE] [code]sergeb@megusta ~/src/sizetest $ cat test.c #include "stdio.h" int main(int argc, char **argv) { printf("Hello I'm %s called with %i arguments.\n", argv[0], argc); return 0; } sergeb@megusta ~/src/sizetest $ gcc test.c -Os -s -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -m32 -o testgcc sergeb@megusta ~/src/sizetest $ tcc test.c -o testtcc sergeb@megusta ~/src/sizetest $ wc -c testtcc 3376 testtcc sergeb@megusta ~/src/sizetest $ wc -c testgcc 3212 testgcc sergeb@megusta ~/src/sizetest $ ./testtcc Hello I'm ./testtcc called with 1 arguments. sergeb@megusta ~/src/sizetest $ ./testgcc Hello I'm ./testgcc called with 1 arguments.[/code]
  • Avatar of iNova
  • [QUOTE=q3k;29669974][code]sergeb@megusta ~/src/sizetest $ cat test.c #include "stdio.h" int main(int argc, char **argv) { printf("Hello I'm %s called with %i arguments.\n", argv[0], argc); return 0; } sergeb@megusta ~/src/sizetest $ gcc test.c -Os -s -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -m32 -o testgcc sergeb@megusta ~/src/sizetest $ tcc test.c -o testtcc sergeb@megusta ~/src/sizetest $ wc -c testtcc 3376 testtcc sergeb@megusta ~/src/sizetest $ wc -c testgcc 3212 testgcc sergeb@megusta ~/src/sizetest $ ./testtcc Hello I'm ./testtcc called with 1 arguments. sergeb@megusta ~/src/sizetest $ ./testgcc Hello I'm ./testgcc called with 1 arguments.[/code][/QUOTE] Add a how-to-crinkler on top of that and I'm switching over :v:
  • Avatar of q3k
  • [QUOTE=iNova;29669986]Add a how-to-crinkler on top of that and I'm switching over :v:[/QUOTE] Crinkler is Windows-only.
  • [QUOTE=Richy19;29669961]Haha yea i got that, but in that case its a pointles command. Most if not all programs would use the standard library somewhere.[/QUOTE] operating system kernels
  • Avatar of Spoco
  • I'm more interested in 64k demos and demos without size limits. I'm sure I've posted ASD Lifeforce before in some WAYWO, but here it is anyway, because I love it; especially the music: [media]http://www.youtube.com/watch?v=P0OfkJc711A[/media] [URL]http://www.pouet.net/prod.php?which=31571[/URL] Other demos by ASD are also very nice. My personal favorite from last year: [media]http://www.youtube.com/watch?v=vQ2iQQvofCE[/media] This is one that you might want to watch on your own hardware, if you've got a high-end graphics card with a lot of memory that is. [URL]http://www.pouet.net/prod.php?which=55558[/URL] And one of my favorite 64k's: [media]http://www.youtube.com/watch?v=Nf5oQ8lQ8u0[/media] If you watch this one on your own PC, beware of [b]false[/b] anti-virus positives. I assume it's because the packer it uses has been used to pack malware in the past. [URL]http://www.pouet.net/prod.php?which=25776[/URL]
  • Avatar of Richy19
  • [QUOTE=q3k;29670009]Crinkler is Windows-only.[/QUOTE] where on windows, unless you mean VC++ only
  • Avatar of iNova
  • [QUOTE=Richy19;29670138]where on windows, unless you mean VC++ only[/QUOTE] ... He's not running windows, not us.
  • Avatar of Richy19
  • [QUOTE=iNova;29670297]... He's not running windows, not us.[/QUOTE] He might still know how to use it
  • Avatar of iNova
  • gcc Demo.c -Os -s -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -m32 -lopengl32 -lgdi32 -o demo_gcc tcc Demo.c -lopengl32 -lgdi32 -o demo_tcc.exe demo_gcc = 11KB demo_tcc = 4KB Hmm..
  • Avatar of q3k
  • [QUOTE=iNova;29671811]gcc Demo.c -Os -s -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -m32 -lopengl32 -lgdi32 -o demo_gcc tcc Demo.c -lopengl32 -lgdi32 -o demo_tcc.exe demo_gcc = 11KB demo_tcc = 4KB Hmm..[/QUOTE] Blame Cygwin. You're better of using MSVC++ on Windows.
  • Avatar of iNova
  • [QUOTE=q3k;29672111]Blame Cygwin. You're better of using MSVC++ on Windows.[/QUOTE] Cygwin? Where? I'm using Mingw32
  • Avatar of q3k
  • [QUOTE=iNova;29672129]Cygwin? Where? I'm using Mingw32[/QUOTE] Well, blame mingw then.