Comments (3)
Yeah, it's probably worth evicting bitmaps from the cache after it reaches a certain size. If you want to take a swing at such an implementation I'll gladly merge it. I'm not sure that a game that fills the cache has any hope of ever performing well, though, so it may not be worth the effort.
Any ways to do this natively? Nope, canvas pretty much sucks. I experimented with doing it via SVG filters, since they can do this natively with hardware acceleration, but every modern browser's SVG implementation is so hopelessly kneecapped and full of bugs that you can't use it for this either. Only option is WebGL, and right now that's not a realistic enough option to use as the standard implementation for the shims. A dual canvas/webgl impl like forplay uses might be cool, though.
Edit: If you provide a test case that hits this bug, that'd also be adequate for me to be able to write a fix against. Right now since none of my code hits it it's unlikely I'd fix it myself.
from jsil.
I've updated the image multiply caching system in fd0a850 to reduce the number of cached bitmaps it uses (alpha is no longer handled using the multiply system, it just keys off r/g/b now). This should reduce memory usage somewhat. Still no cache eviction algorithm though.
from jsil.
Should be fixed by 2ea2402.
from jsil.
Related Issues (20)
- DCE works incorrectly for derived interface implementation
- Content Not Being Generated XNA HOT 1
- Assembly.GetType is not working for generics.
- Unsigned comparisons work incorrect
- Type.FullName is not returning correct name for generic dictionary
- Async state machine incorrect translation HOT 6
- Calling External Library From C# HOT 2
- string.IndexOf(String value, StringComparison comparisonType) not available HOT 2
- Support netstandard assemblies
- ulong math is incorrect HOT 2
- Installing JSIL on Linux HOT 2
- Support pascalabc
- InvalidCastException when using Newtonsoft.Json.dll (10.0.1 .NET 4.0) HOT 1
- Delegate.Method fails when called in constructor. HOT 3
- C# 7.2 "in" keyword in interfaces
- DateTime Object does not implement public functions
- load file
- Attribute properties are missing HOT 1
- How to Convert a CSharp Project to JavaScript on a Mac? HOT 2
- where do I find the namespace and game?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsil.