releasing in render thread