You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 2, 2018. It is now read-only.
When I use Tango3DR_clear it removes data from it but it does not deallocate memory (it is problem for texturing and reconstruction context). Also Tango3DR_ReconstructionContext_destroy does not deallocate it completely.
I did following test with cpp_mesh_builder_example:
-change resolution: Tango3DR_Config_setDouble(t3dr_config, "resolution", 0.005);
-make it scan more far: Tango3DR_Config_setDouble(t3dr_config, "max_depth", 7.5);
-remove mesh extraction (it is too slow for test)
-do measurement when clear button is pressed:
text += new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + ": ";
ActivityManager.MemoryInfo mem = new ActivityManager.MemoryInfo();
ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
//pause scanning and measure memory
TangoJNINative.onToggleButtonClicked(false);
activityManager.getMemoryInfo(mem);
text += (mem.availMem / 1048576L) + "MB -> ";
//clear context
TangoJNINative.onClearButtonClicked();
//measure memory and resume scanning
activityManager.getMemoryInfo(mem);
text += (mem.availMem / 1048576L) + "MB\n";
TangoJNINative.onToggleButtonClicked(m3drRunning);
//show result
MeshBuilderActivity.this.runOnUiThread(new Runnable()
{
@Override
public void run()
{
Toast.makeText(MeshBuilderActivity.this, text, Toast.LENGTH_LONG).show();
}
});
result:
The text was updated successfully, but these errors were encountered:
When I use Tango3DR_clear it removes data from it but it does not deallocate memory (it is problem for texturing and reconstruction context). Also Tango3DR_ReconstructionContext_destroy does not deallocate it completely.
I did following test with cpp_mesh_builder_example:
-change resolution: Tango3DR_Config_setDouble(t3dr_config, "resolution", 0.005);
-make it scan more far: Tango3DR_Config_setDouble(t3dr_config, "max_depth", 7.5);
-remove mesh extraction (it is too slow for test)
-do measurement when clear button is pressed:
result:
The text was updated successfully, but these errors were encountered: