Playnite Forums
  • Playnite Web
  • Rules
  • Members
  • Team
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Playnite Forums Extension Database Generic Extensions Resolution Changer | Change resolution when starting games

Thread Closed 
Resolution Changer | Change resolution when starting games
darklinkpower
Offline

Super Moderator
#1
12-17-2021, 02:23 AM (This post was last modified: 04-15-2022, 07:47 PM by darklinkpower.)
Resolution Changer | Change resolution when starting games

[Image: icon.png]

Feature requests and bug reports:
Create an issue on the theme GitHub repository after verifying it doesn't already exists.
Make sure to fill all the requested information when opening the issue.


I don't use the forums frequently so please use GitHub for requests and bug reports. You can join the Playnite discord where I am active if you have questions or need support

https://github.com/darklinkpower/Playnit...ion/issues

Description
                                                                                                                                                                             
This extension will change the resolution when starting games and restore the display resolution when the game is closed. Only the main display is supported.

GitHub Repository: https://github.com/darklinkpower/Playnit...Extensions

Installation/Download
                                                                                                                                                                             
Option A. Download from the Addons browser in Playnite.
Option B. Click here to start the install process

Usage
                                                                                                                                                                             
1. Configure plugin settings in the extension settings
2. Configure the launch resolution of the selected games in Main Menu -> Extensions -> Resolution Changer
TobiGru
Offline

#2
12-18-2021, 11:13 AM
Good idea for an extension.
Is it possible to add refresh rate to it?
I play mostly on TV and it supports 50 Hz. So to save performance i switch refresh rate at game startup by a Autohotkey-Script when the game does not offer switching refresh rate in the menu.
darklinkpower
Offline

Super Moderator
#3
12-19-2021, 10:20 PM
(12-18-2021, 11:13 AM)TobiGru Wrote: Good idea for an extension.
Is it possible to add refresh rate to it?
I play mostly on TV and it supports 50 Hz. So to save performance i switch refresh rate at game startup by a Autohotkey-Script when the game does not offer switching refresh rate in the menu.
Should be possible. Open GitHub issue please.
Gildum
Offline

#4
12-23-2021, 03:04 PM (This post was last modified: 12-23-2021, 07:05 PM by Gildum.)
That's quite useful, especially for people with weak integrated gpus (intel HD 4000 in my case), where lowering the desktop resolution helps a lot to get to playable game performance. As there are some games that don't offer an in-game resolution setting (or it's limited) and/or run in borderless windowed fullscreen mode only. In some games I even go down to 640x360 and depending on the art-style of the game it can still look pretty decent!

Until now I have been using the following ahk script per game quite often, but with darklinkpower's extension it's now super easy to use and well integrated into playnite:

ChangeResolution(960, 540)
OnExit("ChangeResolution")
return

ChangeResolution(Screen_Width := 1920, Screen_Height := 1080, Color_Depth := 32, Refresh_Rate := 60)
{
VarSetCapacity(Device_Mode,156,0)
NumPut(156,Device_Mode,36)
DllCall( "EnumDisplaySettingsA", UInt,0, UInt,-1, UInt,&Device_Mode )
NumPut(0x5c0000,Device_Mode,40)
NumPut(Color_Depth,Device_Mode,104)
NumPut(Screen_Width,Device_Mode,108)
NumPut(Screen_Height,Device_Mode,112)
NumPut(Refresh_Rate,Device_Mode,120)
Return DllCall( "ChangeDisplaySettingsA", UInt,&Device_Mode, UInt,0 )
}
Return
source: https://www.autohotkey.com/boards/viewtopic.php?t=12684
darklinkpower
Offline

Super Moderator
#5
03-29-2022, 08:20 PM
Thread locked

If you need support, want to request a feature, report a bug or simply ask a question, please use the means mentioned in the main post.

The reason for this is because it's very difficult and time consuming for me to check, keep track and reply in all the different threads for all the themes and extensions I have in the forums, which are over 30 now. I hope you can be understanding of this and I'm sorry for any inconvenience this can cause.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode