1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/vis/bug29412
kgv b8db9379fe 0032203: Draw Harness, ViewerTest - drop dependency from OpenGL
Added TKOpenGlTest and TKD3DHostTest Draw Harness plugins.
TKOpenGlTest is automatically loaded by ViewerTest::ViewerInit().

Commands vgldebug, vvbo, vcaps and vuserdraw have been moved to TKOpenGlTest.
New command vglshaders lists GLSL programs defined by OpenGl_GraphicDriver,
previously implemented by "vshaderprog -list".

Added new command vdriver for graphic driver selection.
Removed erroneous code from command vstereo.
2021-03-17 19:56:54 +03:00

29 lines
696 B
Plaintext

puts "# ==================================================================="
puts "# 0029412: Huge Memory leak since I upgraded to OC 6.9.0"
puts "# ==================================================================="
puts ""
pload VISUALIZATION
pload OPENGL
vcaps -vsync 0
vinit View1
vglinfo
OCC29412 100 ;# just to initialize
meminfo
vmemgpu
set heap_before [meminfo heap]
OCC29412
set heap_after [meminfo heap]
meminfo
vmemgpu
# check that memory increase is moderate: can be up to 75 KiB on Debian;
# note that the leak in OCCT 6.9.0 - 7.0.0 was ~ 19 MiB
if { $heap_after - $heap_before > 100 * 1024 } {
puts "Error: memory leak of [expr ($heap_after - $heap_before) / 1024] KiB"
}