Cuma 4.8 fps

Iseng2 nyoba bikin puluhan ribu kubus pake OpenGL. Eh taunya cuma dapet 4 fps pas bikin 30ribu kubus 🙁

Dijalanin di atas Ubuntu 8.10 di mesin MacBook generasi paling awal: Core Duo 1.83 GHz, 2GB RAM, Intel 945GM. Compiz dimatikan.

Cobain dong..

$ sudo apt-get install mesa-common-dev libglu1-mesa-dev libsdl1.2-dev
$ wget -O kubus.c http://gist.github.com/raw/31070/7d9fa6f768d1e17a5b5c3a4fac0513c968aed191
$ wget -O Makefile http://gist.github.com/raw/31070/b33b6de85207141642433b26b294c2ce9885d5b2
$ make
$ ./kubus 30000

Pindahin pointer mouse ke tengah2 window dan tunggu sekitar 10 detik sampe keterangan fps-nya muncul.