Jump to content

[1.8.x, 1.9.x, 1.10.x, 1.11.x, 1.12.x] AnyRes Continued - Change your screen resolution on the fly


linuxgurugamer

Recommended Posts

On 3/4/2024 at 6:58 PM, linuxgurugamer said:

New release, 2.0.6

  • Fixed performance issue when window was left open

@smackthepony

That fixed the stuttering for me completely! Thanks :)

However something weird has started happening...switching application focus is causing KSP to change its resolution immediately, something that hadn't happened to me prior to the latest AnyRes update. It's happening regardless of fullscreen or windowed mode, or whether the AnyRes window is open. For example, I had it set to 1280x1400 windowed to splitscreen with Chrome, and clicking on chrome caused KSP to switch to my 1080p fullscreen preset while visible in the background. No log message appears for this resolution switch. I deleted and reconfigured all my presets, and it continued reverting but to a different resolution preset; it seems like it is automatically reverting to the bottom-most resolution in the presets list? But I'm not sure.

I'm also experiencing an issue where alt+tabbing will not work while in fullscreen: pressing alt-tab brings up the Windows app switcher interface for a fraction of a second and then it disappears, keeping KSP on top. This isn't as much of an issue since I can work around it by Start menu-ing out of KSP though.

Link to comment
Share on other sites

Posted (edited)
12 hours ago, smackthepony said:

That fixed the stuttering for me completely! Thanks :)

However something weird has started happening...switching application focus is causing KSP to change its resolution immediately, something that hadn't happened to me prior to the latest AnyRes update. It's happening regardless of fullscreen or windowed mode, or whether the AnyRes window is open. For example, I had it set to 1280x1400 windowed to splitscreen with Chrome, and clicking on chrome caused KSP to switch to my 1080p fullscreen preset while visible in the background. No log message appears for this resolution switch. I deleted and reconfigured all my presets, and it continued reverting but to a different resolution preset; it seems like it is automatically reverting to the bottom-most resolution in the presets list? But I'm not sure.

I'm also experiencing an issue where alt+tabbing will not work while in fullscreen: pressing alt-tab brings up the Windows app switcher interface for a fraction of a second and then it disappears, keeping KSP on top. This isn't as much of an issue since I can work around it by Start menu-ing out of KSP though.

Hmm.  All I changed was the way it got the data to display.

Note:  I just saw it happen to me, I'll work on it tonite

Edit 2:  I found the problem, new release soon (with explanation)

Edited by linuxgurugamer
Link to comment
Share on other sites

New release, 2.0.9.1

  • Fixed error induced by previous fix, where the screen was being reset upon reentering after changing screen, due to a variable not being set properly.

When the previous performance issue was fixed, there was a lot of code changes.  One variable was not being set properly, which caused the screen to be resized when changing focus from/to it (ie:  alt-tab, etc). 

Link to comment
Share on other sites

  • 3 months later...

I've just found AnyRes was causing windows snipping tool to stop working in-game (on windows 11). When I pressed the shortcut Win-Shift-S, the UI for snipping tool would appear and the cursor would change, but only for like a frame and then it would close again. Removing AnyRes would fix the issue, and it was happening as far back as 2.0.8.0. It sounds similar to the above alt-tabbing issue, with the interface showing for a split second then disappearing again.

Removing AnyRes would keep the resolution I'd set, but not the window position, which got set to be x0 y3, and it doesn't seem to be a setting in KSP's settings file. It's a decent enough workaround though, at least allowing snipping tool, but there's a 3px y offset now, and no idea how to fix this otherwise.

Edit: the 3px offset was due to windows force-centering the window, since my custom resolution was just full width but slightly short. I've mostly worked around it now without AnyRes but setting my game resolution height to be just one pixel short, allowing the taskbar to work, while not being so short that windows moves the window down from y=0. I can't find any way to force the window to y=0 besides AnyRes. (windows seems to have removed functionality here from previous versions, typical)

Edited by Rodger
Link to comment
Share on other sites

  • 2 months later...

New release, 2.0.10

  • Thanks to github user @KerballOne for this:
    • Added Features UI Scale setting and set per SCENE
    • It can now automatically switch resolution and UI scale based on scene. Each setting config now includes a "scale" attribute in addition to name, height, width and fullscreen.
    • All it needs is a config file (auto created on first run) with the scene name (e.g. 'EDITOR', 'FLIGHT', etc.).
    • The UI Window updates after each action and allows to save by preset or SCENE. So saving and/or apply new presets is easier.
  • The following change was inspired by the mod Resolution Keeper, published by Spacedock user Bion:
    • Added check to verify that the resolution hadn't changed outside of the game, and reset it if it has
  • Updated URL to get info from Github rather than ksp.spacetux.net
  • Improved kerballone PR by changing UI scale from a number to a slider
  • Added App Scale slider
     
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...