Jump to content
  • Advertisement
Sign in to follow this  
Swartz

DX11 Locating possible memory leak in "Stalker" shaders

This topic is 2027 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

 

I was wondering if someone here could help locate a possible memory leak that appears to be occuring in Stalker: Call of Pripyat under DX11 whenever Tessellation is enabled.

 

I'm hoping that the memory leak is somewhere within these shaders and not within the engine itself so that it can be fixed.

 

Anyways, there's four tessellation shaders:

 

Tess.ds: http://pastebin.com/uhx1i7VF

 

Tess.h: http://pastebin.com/8cmxxJKd

 

Tess.hs: http://pastebin.com/3xS9fz2k

 

Tess_Shadow.ds: http://pastebin.com/ND02LCUe

 

I realize this is an unusual request, I just don't know where to get any help on this as there isn't anybody modding Stalker: Call of Pripyat shaders, everyone sticks to Shadow of Chernobyl and the shader authors I've asked are too busy to help.

 

Any help would be appreciated.

Share this post


Link to post
Share on other sites
Advertisement

Shaders can't allocate memory, so there's no way for them to create a memory leak.

Share this post


Link to post
Share on other sites

I guess I should add that shaders themselves can't allocate anything, but it's possible that the engine allocates things based on what's in the shader. For instance the engine might inspect the shader to look at how many textures it uses, and allocate an array of pointers that get used for storing pointers to textures. However it's impossible to know about these sorts of things without knowing more about the engine, or seeing the engine code.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!