-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug assert with wrong resolution. #278
Comments
Presumably there was a reason for that assert at some point, but I no longer know what it was. It does indeed seem to work fine. I've removed the assert in 91f724e. Thanks for the report! |
Okay so after playing around a little bit, your resizing when the dpi changes is broken, as the new window is the wrong size. No idea how to correctly fix that, just reporting. |
I had to comment the assert first day i tried this on a MS surface.. wiht 150% scaling and default hires. This i just tried and it might fix the problem. maybe look at this in the app manifest.. uncomment that. dpi awareness. first you need to create an app manifest.. i use an external one. I think that will fix your issues. If you are using 150% or its hard to read. If you use two monitors to debug, which is often needed unless there is a super nice tooling IDE wiht docking setup specific for you app,level editor, i found the file
I dont know if its compatible with the OpenTK , seems to be. on and aside.. if anyone knows any tooling that does boilerplate or UI stuff , with openTK save current window state, or scripting, or general UI, like buttons and property sheets. if not exiting users of Bepu we should put that somewhere and share the effort. Avalonia UI is getting good. its painful.. and its common use for anyone. Also there is a thing called Avalonia.Inside that lets you use avalonia UI, scripting, Avalonia Edit, that as a tooling and embed a Monogame window in that.. its not great but gives some real time parameter tooling and scripting ability. via avalonia so you dont have to use two apps, yours and a hard debugger that blocks, just to tune some levels.. It can work with Avalonia and Docking , REact or WPF, either way ideally a rigging with an editor like stride has and a with a soft debugger like CS-Script has made, that does not block threads but lets you adjust and inspect and not run a big debugger AND an game UI.. , and you make your own rigging IDE.. for debu in avalonia this might be a good rig.. then put your scripts in a dll and build with your game after.. your host in avalonia if tis fast enough an shares a backbuffer, not using a buffer unless you are doing lockless producer / consumer and have one anywasys. https://wieslawsoltes.github.io/Dock/ I use 150 scaling resolution and had to debug the assert. The real fix i think it this, i justed tested that it makes a difference in hi rest and 150 scaling, the default. |
Freshly cloned repo, on 4k display. I am running the demo project. I am using windows 125% scaling, so perhaps something breaks there? This error was not present in previous versions.
Removing the debug asserts, makes it work again, with no noticable issues, like screen clipping, or anything else broken.
The text was updated successfully, but these errors were encountered: