commit ac25b70ca2c5f9c64eacf596299a1eb761ad32ca parent 9840d8f2e73e0026fa8b96b90111a846a755979e Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Jun 11 16:23:34 +0300 Fix fireball FPS drops Diffstat:
hm.cc | | | 4 | ++-- |
diff --git a/hm.cc b/hm.cc @@ -268,7 +268,7 @@ extern "C" GAME_FRAME( game_frame ) { const float gravity = 9.81f; fireball->pos = new_pos; fireball->velocity.z -= dt * gravity; - immediate_sphere( &imm, fireball->pos, 4, v4( 1, 0, 0, 1 ) ); + immediate_sphere( &imm, fireball->pos, 4, v4( 1, 0, 0, 1 ), 4 ); } } } @@ -283,7 +283,7 @@ extern "C" GAME_FRAME( game_frame ) { for( Explosion * explosion : explosions ) { float t = float( current_time - explosion->created_at ); if( t < 0.5f ) { - immediate_sphere( &imm, explosion->pos, t * 32.0f, v4( 1, 0.5, 0, 1 ) ); + immediate_sphere( &imm, explosion->pos, t * 32.0f, v4( 1, 0.5, 0, 1 ), 4 ); } else { explosions.release( explosion );