implemented frustum culling. this gives about +80 FPS on my pc and +5 to +20 on my laptop