-updated tests:
*updated build scripts *removed tls variables from code (needed to support WebAssembly) *some mmutils tweaks *some fixes *pthread TLS thread ID implementation -added Atomic file (reimplementation of atomics templates for emscripten) -added emscripten support to ecs.std
This commit is contained in:
parent
46de0f6adb
commit
946fbf2934
18 changed files with 443 additions and 229 deletions
|
|
@ -86,7 +86,7 @@ struct MoveSystem
|
|||
}
|
||||
}
|
||||
|
||||
Simple* simple;
|
||||
__gshared Simple* simple;
|
||||
|
||||
void simpleStart()
|
||||
{
|
||||
|
|
@ -149,7 +149,7 @@ bool simpleLoop()
|
|||
{
|
||||
if(launcher.getKeyState(SDL_SCANCODE_SPACE))
|
||||
{
|
||||
spawnEntity();
|
||||
foreach(i;0..10000)spawnEntity();
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -159,7 +159,6 @@ bool simpleLoop()
|
|||
launcher.job_updater.begin();
|
||||
launcher.manager.updateMT();
|
||||
launcher.job_updater.call();
|
||||
launcher.multithreading = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -409,7 +409,7 @@ struct CleanSystem
|
|||
}
|
||||
}
|
||||
|
||||
Snake* snake;
|
||||
__gshared Snake* snake;
|
||||
|
||||
void snakeStart()
|
||||
{
|
||||
|
|
@ -500,7 +500,7 @@ bool snakeLoop()
|
|||
|
||||
float delta_time = launcher.delta_time;
|
||||
if(delta_time > 2000)delta_time = 2000;
|
||||
static float time = 0;
|
||||
__gshared float time = 0;
|
||||
|
||||
if(launcher.getKeyState(SDL_SCANCODE_SPACE))time += delta_time * 3;
|
||||
else time += delta_time;
|
||||
|
|
|
|||
|
|
@ -746,8 +746,6 @@ bool spaceInvadersLoop()
|
|||
launcher.job_updater.begin();
|
||||
launcher.manager.updateMT();
|
||||
launcher.job_updater.call();
|
||||
launcher.multithreading = false;
|
||||
printf("Disable mt\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue