Closed Pathoschild closed 7 years ago
None of the SMAPI developers can reproduce this, so we need volunteers affected by this issue. Moving this into the backlog until we can find an affected user.
Tested with an affected user; this seems to be fixed in 1.0. 🎊
For a subset of users, SMAPI raises graphics events after drawing to the game's sprite batch will no longer have any effect.
Background
SMAPI draws to the screen in one of two ways:
Importantly, it raises
OnPostRenderGuiEvent
(e.g. line 1307) andOnPostRenderEvent
(e.g. line 1315) before ending the sprite batch and discarding the temporary render target.The issue
For a subset of users:
OnPostRenderGuiEvent
,OnPostRenderHudEvent
, andOnPostRenderEvent
events at a non-100% zoom is invisible. At 100% zoom, it's shown correctly.Notes based on testing:
Game1.spriteBatch.GraphicsDevice.GetRenderTargets()
is consistently empty. For unaffected users, it consistently has one value (presumablySGame::Screen
).Reproducing the issue
I haven't found any way of deliberately causing the issue — it consistently works for some users, consistently breaks for others. However, it's possible to test it.
The mod will log relevant metadata to the console.
For an unaffected user, note that a render target (presumably
SGame::Screen
) is added when the player zoomes out:For an affected user, note that the render targets are empty at any zoom level:
Known affected users
(Thanks coffeefox for letting me use you as a guinea pig, since I'm not affected. 😄)