Browse Source

Merge branch '206-notifiations-slows-fps' into 'v0.1.5'

Resolve "Popup message slows game"

See merge request !160
tags/v0.1.5^2
Big Bad Waffle 6 years ago
parent
commit
a9c980a29f
4 changed files with 4 additions and 1 deletions
  1. +1
    -0
      src/client/js/components/particles.js
  2. +1
    -1
      src/client/js/rendering/particles.js
  3. +1
    -0
      src/client/ui/templates/announcements/styles.less
  4. +1
    -0
      src/server/config/spells/spellFireblast.js

+ 1
- 0
src/client/js/components/particles.js View File

@@ -15,6 +15,7 @@ define([
x: (this.obj.x * scale) + (scale / 2),
y: (this.obj.y * scale) + (scale / 2)
};
this.ttl = blueprint.ttl;

this.emitter = renderer.buildEmitter(this.blueprint);
},


+ 1
- 1
src/client/js/rendering/particles.js View File

@@ -51,7 +51,7 @@ define([
if (destroy) {
if (e.particleCount > 0) {
visible = renderer.isVisible(e.spawnPos.x, e.spawnPos.y);
if (visible)
if (visible)
destroy = false;
}
}


+ 1
- 0
src/client/ui/templates/announcements/styles.less View File

@@ -28,6 +28,7 @@
-2px 2px 0 @blackD,
2px 2px 0 @blackD;
animation: 0.5s ease-in-out infinite bounce;
will-change: top;

&.success {
color: @green;


+ 1
- 0
src/server/config/spells/spellFireblast.js View File

@@ -32,6 +32,7 @@ define([
y: j,
components: [{
type: 'particles',
ttl: 10,
blueprint: this.particles
}]
};


Loading…
Cancel
Save