Remove prints and change defines
This commit is contained in:
parent
1f2f2f9541
commit
ce3c986ad2
|
|
@ -1,5 +1,5 @@
|
|||
#define BECS_MAX_ENTITIES 100000
|
||||
#define BECS_MAX_COMPONENTS 4
|
||||
#define BECS_MAX_ENTITIES 100000ULL
|
||||
#define BECS_MAX_COMPONENTS 4ULL
|
||||
#define BECS_IMPLEMENTATION
|
||||
#include "../../becs.h"
|
||||
#include <stdlib.h>
|
||||
|
|
@ -109,7 +109,6 @@ void DrawCircleBatched(Vector2 *positions, float *radii, Color *colors, uint32_t
|
|||
}
|
||||
}
|
||||
rlEnd();
|
||||
printf("Drawing %d circles\n", count);
|
||||
}
|
||||
|
||||
void RenderSystemBatched(BECS_ECS *ecs, float dt, Position *pos, ParticleData *data, Vector2 *posArray, float *radArray, Color *colArray) {
|
||||
|
|
@ -122,7 +121,6 @@ void RenderSystemBatched(BECS_ECS *ecs, float dt, Position *pos, ParticleData *d
|
|||
colArray[batchCount]=(Color){255,255,255,(unsigned char)(alpha*255)};
|
||||
batchCount++;
|
||||
}
|
||||
printf("entityCount %u, batchCount: %u\n", entityCount, batchCount);
|
||||
DrawCircleBatched(posArray, radArray, colArray, batchCount, 16);
|
||||
}
|
||||
|
||||
|
|
@ -171,7 +169,7 @@ int main(void) {
|
|||
// Spawn particle on mouse click
|
||||
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) {
|
||||
Vector2 mousePos = GetMousePosition();
|
||||
for (uint32_t i = 0; i < 60; i++) {
|
||||
for (uint32_t i = 0; i < 100; i++) {
|
||||
SpawnParticle(&ecs, posID, velID, accID, dataID, mousePos.x, mousePos.y);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue