Couldn't release all the resources at CShaderAPIDX8::ReleaseResources() #338

Closed
opened 2021-10-05 14:36:02 +00:00 by UAVXP · 9 comments
UAVXP commented 2021-10-05 14:36:02 +00:00 (Migrated from gitlab.com)

Happens when running another Source app, i.e. Worldcraft, while the game is running.
Could be related to some rendertargets (bindID = 30000)

Happens when running another Source app, i.e. Worldcraft, while the game is running. Could be related to some rendertargets (bindID = 30000)
UAVXP commented 2021-10-05 14:36:47 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
UAVXP commented 2021-10-05 15:59:28 +00:00 (Migrated from gitlab.com)

Could it be connected to clamping shader constants to 100 in shaderapidx8.cpp?

Could it be connected to clamping shader constants to 100 in shaderapidx8.cpp?
UAVXP commented 2021-10-08 12:27:30 +00:00 (Migrated from gitlab.com)

bindID = 30000 is a [lightmap 0]

bindID = 30000 is a [lightmap 0]
UAVXP commented 2021-10-11 13:14:47 +00:00 (Migrated from gitlab.com)

bindID = 30000 is a lightmap alpha*

Partially fixed in gitlab.com/leaknet/LeakNet/-@2fcef70c08

Still need to figure out to clean up the CVertexBuffer ones

bindID = 30000 is a lightmap alpha* Partially fixed in https://gitlab.com/leaknet/LeakNet/-/commit/2fcef70c08d98d4c72cf619c09791a750ba9b835 Still need to figure out to clean up the CVertexBuffer ones
UAVXP commented 2021-10-11 16:58:25 +00:00 (Migrated from gitlab.com)

marked this issue as related to #339

marked this issue as related to #339
UAVXP commented 2021-11-30 11:44:16 +00:00 (Migrated from gitlab.com)

Now only CVertexBuffer weren't cleaned up. And only on high(?) model loaded maps (no matter whether HDR is on or off). For example, on only one disappearing model map it's okay, but since I load trans_02_badcombo save - it asserts at MeshMgr()->BufferCount() is not 0

Now only CVertexBuffer weren't cleaned up. And only on high(?) model loaded maps (no matter whether HDR is on or off). For example, on only one disappearing model map it's okay, but since I load trans_02_badcombo save - it asserts at MeshMgr()->BufferCount() is not 0
UAVXP commented 2021-11-30 12:13:20 +00:00 (Migrated from gitlab.com)

MeshMgr()->ReleaseBuffers() should release a few buffers, and ShaderUtil()->ReleaseShaderObjects() - all the others

MeshMgr()->ReleaseBuffers() should release a few buffers, and ShaderUtil()->ReleaseShaderObjects() - all the others
UAVXP commented 2021-11-30 13:14:16 +00:00 (Migrated from gitlab.com)

Not causing:

npc_alyx (and overall Alyx.mdl)
Small cardboard box model
Cremator model
Jeep model
Brush door model
Regular door model
Human model
Decal
func_wall
...

What's causing:

All prop_static (also going black after the assert) (not only a models/props_interiors/Radiator01a.mdl)
Not causing: ``` npc_alyx (and overall Alyx.mdl) Small cardboard box model Cremator model Jeep model Brush door model Regular door model Human model Decal func_wall ... ``` What's causing: ``` All prop_static (also going black after the assert) (not only a models/props_interiors/Radiator01a.mdl) ```
UAVXP commented 2024-11-28 08:37:28 +00:00 (Migrated from gitlab.com)

Seems like to be fixed by gitlab.com/leaknet/LeakNet/-@94d87518d8

Seems like to be fixed by https://gitlab.com/leaknet/LeakNet/-/commit/94d87518d857e7f77a91f1190263fabeacde68df
UAVXP (Migrated from gitlab.com) closed this issue 2024-11-28 08:37:29 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Archive/LeakNet#338
No description provided.