
driver->setMaterial( cr->getMaterial(0) );
for( int cont = 0; cont < cr->getMesh()->getMeshBufferCount(); cont++ )
driver->drawMeshBuffer( cr->getMesh()->getMeshBuffer(cont) );
kaos wrote:I have 200 mB in Ram, when arrive to render( next code ), ram grow up many.
- cpp Code: Select all
driver->setMaterial( cr->getMaterial(0) );
for( int cont = 0; cont < cr->getMesh()->getMeshBufferCount(); cont++ )
driver->drawMeshBuffer( cr->getMesh()->getMeshBuffer(cont) );
And them I can't release the memory.
edit- if I don't write this lines, the memory don't change.
hybrid wrote:Actually there is no significant RAM usage inside Irrlicht for the VBOs, but it is probably the memory allocated by the gfx driver. You can delete hardware buffers after you're done with rendering these components with the proper driver call.

error C2065: 'Params' : undeclared identifier
\source\Irrlicht\CD3D8Driver.cpp
line 329warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 959
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 960
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 961
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 965
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 966
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 967
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 971
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 972
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 973
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 993
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 994
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 995
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 999
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 1000
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 1001
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 1005
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 1006
warning C4244: '=' : conversion from 'const irr::f64' to 'irr::f32', possible loss of data \include\matrix4.h line 1007M[0] = tx * axis.X + c;M[0] = (T)(tx * axis.X + c);Users browsing this forum: No registered users and 1 guest