[julia-users] GC and 3D Graphics

2014-11-25 Thread Simon Danisch
Hi, 
I was wondering about how much of a burden Julia's garbage collector will 
be for state of the art 3D graphics.
Apple always had the upper hand with smooth animations and very little ram 
consumption and from what I've read this is/was mainly due to Android using 
Java with a gc.
What options do I have for Julia?
Is it easy to create a data structure not relying on the gc?
How much effort would it take, to create a drawing thread, which will not 
get stopped by the gc? (under the assumption, that the thread only uses gc 
free data structures)

Cheers,
Simon


Re: [julia-users] GC and 3D Graphics

2014-11-25 Thread Kevin Squire
If the thread is known to run quickly and won't use up all memory, you
could try simply turning off garbage collection while drawing, and turning
it back on after.

That said, Oscar Blumberg has a PR (
https://github.com/JuliaLang/julia/pull/8699) for an incremental garbage
collector which is targeted at such uses. It should be merged for v0.4.

Cheers,
   Kevin


On Tuesday, November 25, 2014, Simon Danisch  wrote:

> Hi,
> I was wondering about how much of a burden Julia's garbage collector will
> be for state of the art 3D graphics.
> Apple always had the upper hand with smooth animations and very little ram
> consumption and from what I've read this is/was mainly due to Android using
> Java with a gc.
> What options do I have for Julia?
> Is it easy to create a data structure not relying on the gc?
> How much effort would it take, to create a drawing thread, which will not
> get stopped by the gc? (under the assumption, that the thread only uses gc
> free data structures)
>
> Cheers,
> Simon
>