-
Hello, I'm exploring using WPF as UI for my game. I was able to get an app running with WPF and the game rendered inside. However, the game is being rendered on top of the UI. I've been trying to scour the source code to see how the Stride Editor does it, because its able to draw context menus on top of the game view. Any ideas? Thanks. EDIT: After messing around, I was able to get wpf rendered on top of the game by making a borderless wpf window that allowed transparency, and using win32 functions to sync its position with the game. However, this requires the game to run in windowed mode (borderless and fullscreen, but IsFullscreen is off), and in window mode the game's performance suffers a lot from excessive screen tearing, I've yet to find how to fix this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
For your frame rate issue can you try adding this within your gamecontext?
It may be a weird issue where the window thinks its minimized or out of focus so it uses the default fps limit. If you need a spot to put this code you can override the Game class like below:
and then in you startup where you run |
Beta Was this translation helpful? Give feedback.
#2216 (comment)
can you mark this as the answer if it seems fixed now?