• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

excaliburjs / Excalibur / 1123 / 1
84%
main: 89%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/site/postcss-8.5.23
DEFAULT BRANCH: main
Ran 16 Nov 2016 05:25AM UTC
Files 1
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Nov 2016 05:23AM UTC coverage: 67.626% (-0.06%) from 67.682%
1123.1

push

travis-ci

eonarheim
Minimize Sprite#_applyEffects calls (#690)

## Changes:

- In `Actor`, don't reapply effects to drawing in `update` method, do it only in `draw` and if `frames` or `opacity` was changed
- In `Sprite`, always set `_effectsDirty` flag after effects were applied
- Few minor changes, like don't calculate same value twice in same method

It's my attempt to improve things on issue #481. It doesn't close issue completely because source of unnecessary calls to `Sprite#_loadPixels` remains mystery to me, but I was able to reduce amount of `_applyEffects` calls.
I can miss some effects' use cases (although sandbox tests seemed working), so please review this carefully.

4441 of 6567 relevant lines covered (67.63%)

162.74 hits per line

Source Files on job 1123.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1123
  • Travis Job 1123.1
  • e7ccc6bc on github
  • Prev Job for on master (#1122.1)
  • Next Job for on master (#1134.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc