Skip to content
Snippets Groups Projects
Commit 3d999bcc authored by dg's avatar dg
Browse files

use enough particle threads

git-svn-id: http://svn.net-core.org/repos/t-engine4@5496 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4d39ba9e
No related branches found
No related tags found
No related merge requests found
......@@ -125,12 +125,16 @@ newBirthDescriptor{
power_source = {arcane=true},
stats = { mag=5, wil=3, cun=1, },
birth_example_particles = {
"arcane_power",
function(actor)
if core.shader.active(4) then actor:addParticles(Particles.new("shader_ring_rotating", 1, {radius=1.1}, {type="flames", hide_center=0, xy={0, 0}}))
else actor:addParticles(Particles.new("wildfire", 1))
end
end,
function(actor)
if core.shader.active(4) then actor:addParticles(Particles.new("shader_ring_rotating", 1, {radius=1.1}, {type="flames", hide_center=0, time_factor=1700, zoom=0.3, npow=1, color1={0.6, 0.3, 0.8, 1}, color2={0.8, 0, 0.8, 1}, xy={0,0}}))
else actor:addParticles(Particles.new("ultrashield", 1, {rm=180, rM=220, gm=10, gM=50, bm=190, bM=220, am=120, aM=200, radius=0.4, density=100, life=8, instop=20}))
end
end,
function(actor)
if core.shader.active(4) then actor:addParticles(Particles.new("shader_ring_rotating", 1, {rotation=-0.2, radius=1.1}, {type="sparks", hide_center=0, time_factor=40000, color1={0, 0, 1, 1}, color2={0, 1, 1, 1}, zoom=0.5, xy={0, 0}}))
else actor:addParticles(Particles.new("uttercold", 1))
......
......@@ -926,7 +926,7 @@ void create_particles_thread()
MAX_THREADS = nb_cpus - 1;
MAX_THREADS = (MAX_THREADS < 1) ? 1 : MAX_THREADS;
MAX_THREADS = 1;
//MAX_THREADS = 1;
threads = calloc(MAX_THREADS, sizeof(particle_thread));
cur_thread = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment