unity texture2d circle assigned cause memory leak
unity five point six point one thirty-two bit version,i am making a live streaming Virtual Reality application,my live video player made by FF mpeg and c++,the view and render module made by unity and c#, because its a video application,i use a texture to draw FF mpeg decode frame,the texture will new a instance when i open a video or live for draw the picture,but i notice that:the application use memory will rise 10-20 Mega byte each time when i new the texture even the texture is defined once at heap not in function(the stack),in c++ yes that i call delete texture when use up,but c# has garbage collection and no delete function,so it will cause memory leak?i don't understand!its very danger!but then i find that call Unity Engine Object Destroy(texture),can fix the problem,maybe texture usage is not perfect.
Your answer
Follow this Question
Related Questions
SetPixels edge pixels 0 Answers
Unity seems to be in 2D, but I want it in 3D 1 Answer
Using bitmaps for Image-processing with Unity 1 Answer
LoadRawTextureData - how to use? 0 Answers