Resolution scale on windows affects Offset UIs

My guis are set to specific sizes and positions on the screen. Some users see them in the wrong places because Roblox is feeding windows resolution scaling into gui offsets for some reason. The camera viewport size, screen gui size, and guiservice insets are all affected by this.

Expected behavior

Roblox should use exact pixel sizes and not respect windows resolution scaling.

3 Likes

Hey @Sharksie when you say “windows resolution scaling”, do you mean your monitor display scaling setting in Windows or other OS settings?

This setting.

Thank you for clarifying. This is intended functionality: offset is a logical unit that is scaled by the device display setting. This allows user interfaces to scale across the wide variety of display sizes and densities that Roblox supports.

This is making my guis so large that they cover up gameplay. Players don’t realize that they have this setting on. My interfaces are scaled for the player’s screen size but there’s no way for me to recognize that the screen is being scaled or not. Surely this is not intended.

Could we at least have a way of getting the scale at which the user’s OS is displaying as?

Something like GuiService.ViewportScale

I do think something like Window: devicePixelRatio property - Web APIs | MDN would be useful for Roblox. Though if you attempted to “unscale” your APIs you’d run into other problems, namely with offset not supporting floating point values there are limitations in positioning. More work to do…

1 Like