Added configuration constants to the gpu kernel
This commit is contained in:
+2
-2
@@ -73,7 +73,7 @@ int main(int argc, char* argv[])
|
||||
SDL_LockTexture(start_texture, NULL, (void**)&u8_pixels,&i_pitch);
|
||||
|
||||
int i_created = 0;
|
||||
uint32_t u32_radius = 4*((u32_width<u32_height)?u32_width:u32_height)/10;
|
||||
uint32_t u32_radius = 1*((u32_width<u32_height)?u32_width:u32_height)/10;
|
||||
while(i_created < i_agent_count)
|
||||
{
|
||||
float r = u32_radius*sqrt((float)rand()/(float)RAND_MAX);
|
||||
@@ -215,7 +215,7 @@ int main(int argc, char* argv[])
|
||||
unsigned long long ull_time_old, ull_time_now;
|
||||
ull_time_now = ull_time_old = sys_time_us();
|
||||
|
||||
int iteration_duration = 16666;
|
||||
int iteration_duration = 16666/10;
|
||||
bool pause = true;
|
||||
|
||||
while(true)
|
||||
|
||||
Reference in New Issue
Block a user