View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0024315 | Open CASCADE | OCCT:Visualization | public | 2013-11-05 08:02 | 2013-12-19 13:59 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | trivial | ||
Status | closed | Resolution | fixed | ||
Platform | A | OS | L | ||
Target Version | 6.7.0 | Fixed in Version | 6.7.0 | ||
Summary | 0024315: Use delayed release of resources in OpenGl aspects for consistency | ||||
Description | For shared OpenGl resources the common style is to use delayed release procedure. There is an inconsistency in release approaches used within OpenGl aspects - it should be revised in a unified manner. Delayed release here: void OpenGl_AspectMarker::Release (...) { ... if (myResources.SpriteKey.IsEmpty()) { ... } else { ... theCtx->ReleaseResource (myResources.SpriteKey, Standard_True); theCtx->ReleaseResource (myResources.SpriteAKey, Standard_True); } ... } But instant release here: void OpenGl_AspectMarker::Resources::BuildSprites (...) { if (aNewResource) { if (!Sprite.IsNull()) { if (SpriteKey.IsEmpty()) { ... } else { Sprite.Nullify(); // we need nullify all handles before ReleaseResource() call aContext->ReleaseResource (SpriteKey); } } ... } ... } | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
related to | 0024309 | closed | TKOpenGl - Shader resources should be released with delay |
|
Dear kgv, Could you please review CR24315? |
|
Please test the patch. |
|
Dear BugMaster, Branch CR24315 (and products from GIT master) was compiled on Linux and Windows platforms and tested. SHA-1: ce56e9c195a03c623874bbcc2690924e5990396c Number of compiler warnings: occt component : Linux: 317 (317 on master) Windows: 0 (0 on master) products component : Linux: 188 (189 on master) Windows: 287 (287 on master) Regressions/Differences: No regressions/differences Testing cases: Not needed Testing on Linux: Total MEMORY difference: 357181336 / 357253212 Total CPU difference: 43580.85000000006 / 43279.94000000018 Testing on Windows: Total MEMORY difference: 411875724 / 411574748 Total CPU difference: 33102.0 / 34417.59375 There are not differences in images found by testdiff. |
occt: master 95eef64d 2013-11-18 16:38:26
Committer: bugmaster Details Diff |
0024315: Use delayed release of resources in OpenGl aspects for consistency - Do delayed release of face texture resource of OpenGl_AspectFace, point sprite texture of OpenGl_AspectMarker |
Affected Issues 0024315 |
|
mod - src/OpenGl/OpenGl_AspectFace.cxx | Diff File | ||
mod - src/OpenGl/OpenGl_AspectMarker.cxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-11-05 08:02 |
|
New Issue | |
2013-11-05 08:02 |
|
Assigned To | => apl |
2013-11-05 08:03 |
|
Status | new => assigned |
2013-11-05 08:03 |
|
Relationship added | related to 0024309 |
2013-11-05 08:05 |
|
Target Version | 6.7.1 => 6.7.0 |
2013-11-18 20:36 |
|
Note Added: 0026719 | |
2013-11-18 20:36 |
|
Assigned To | apl => kgv |
2013-11-18 20:36 |
|
Status | assigned => resolved |
2013-11-18 23:39 | kgv | Note Added: 0026721 | |
2013-11-18 23:39 | kgv | Assigned To | kgv => bugmaster |
2013-11-18 23:39 | kgv | Status | resolved => reviewed |
2013-11-18 23:39 | kgv | Description Updated | |
2013-11-19 07:04 |
|
Assigned To | bugmaster => mkv |
2013-11-19 11:23 |
|
Note Added: 0026730 | |
2013-11-19 11:24 |
|
Test case number | => Not needed |
2013-11-19 11:24 |
|
Assigned To | mkv => bugmaster |
2013-11-19 11:24 |
|
Status | reviewed => tested |
2013-11-25 13:17 | bugmaster | Changeset attached | => occt master 95eef64d |
2013-11-25 13:17 | bugmaster | Status | tested => verified |
2013-11-25 13:17 | bugmaster | Resolution | open => fixed |
2013-12-19 13:50 | bugmaster | Status | verified => closed |
2013-12-19 13:59 | bugmaster | Fixed in Version | => 6.7.0 |