by 12thwonder · 4y ago · 0 comments
in addition, if your system requires precise control over when and when not to use CPU, like resource-intensive gaming, browsers, OS, then GC may not be a good choice.
lastly, if you are using GPU via graphics API, I do not know any API that can garbage collect GPU memory but RC can naturally extend memory cleanup code to cleanup GPU memory as well quite easily.
I personally would like to know when the GPU resources become available (freed) thus still inclined to prefer RC over GC tho.
Unfortunately, real-world constraints always seem to get in the way...