johnfn / Fathom

A library for writing 2D games in Haxe. It has Stage3D acceleration, automagic image reloading, and lots more.
MIT License
10 stars 0 forks source link

Investigate threading for hotswapping #29

Open johnfn opened 11 years ago

johnfn commented 11 years ago

This would be a nicer solution than holding down a key, but it'd be harder also.

It's pretty much the canonical producer consumer problem. The producing would be the thread that compared the new image to the old one to see if they are the same. This is time intensive. The consumer thread would be the thread that updated all image references if required.