Skip to content

fix: Fix game hang when taking screenshots#528

Open
MrS-ibra wants to merge 1 commit into
GeneralsOnlineDevelopmentTeam:mainfrom
MrS-ibra:fix/screenshot-pDXsurf-release
Open

fix: Fix game hang when taking screenshots#528
MrS-ibra wants to merge 1 commit into
GeneralsOnlineDevelopmentTeam:mainfrom
MrS-ibra:fix/screenshot-pDXsurf-release

Conversation

@MrS-ibra

Copy link
Copy Markdown
Member

Fixes game hang when pressing F11 or F12 to take a screenshot
pDXsurf was being released on the worker thread where it was contending with the main thread over D3D's internal lock during resource destruction,. It is now only cleaned up on the main thread alongside the other surface cleanup regardless of bSucceeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant