compile sim with ofast

This commit is contained in:
Redo 2022-11-05 00:41:38 -06:00
parent c73fea8cca
commit 1d465b09f7
4 changed files with 3 additions and 1 deletions

View File

@ -1,2 +1,2 @@
gcc compiled_sim.c -shared -o compiled_sim.dll -Wall -Werror gcc compiled_sim.c -shared -o compiled_sim.dll -Wall -Werror -Ofast
pause pause

Binary file not shown.

View File

@ -212,6 +212,7 @@ function Group.mergeinto(group, group2)
end end
-- Logic Critical -- Logic Critical
-- Now implemented in C
--function Group.update_c(cnet, tick) --function Group.update_c(cnet, tick)
-- local state = cnet.state_num[0]>0 and 1 or 0 -- local state = cnet.state_num[0]>0 and 1 or 0
-- if state ~= cnet.state[0] then -- if state ~= cnet.state[0] then

View File

@ -350,6 +350,7 @@ end
-- Logic Critical -- Logic Critical
function Simulation.ticklogic(sim) function Simulation.ticklogic(sim)
-- Now implemented in C
--for i = 0, sim.num_groupqueue[0]-1 do --for i = 0, sim.num_groupqueue[0]-1 do
-- local cnet = sim.groupqueue[i] -- local cnet = sim.groupqueue[i]
-- Group.update_c(cnet, sim.current_tick[0]) -- Group.update_c(cnet, sim.current_tick[0])