Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

I like this system, but I'm having trouble getting it to work correctly with gpu_set_scissor(). It doesn't update the scissor region when resizing the window. The same code works when resizing the window without Advanced Resolution Manager. Am I missing something?

Using runtime version 2024.13.1.242, and the target is Windows.

Sorry for the inconvenience. As far I can tell, the issue should be that gpu_set_scissor() works in display pixel coordinates but not in game coordinates. So, when the window resizes, the scissor region doesn’t scale automatically with Advanced Resolution Manager.

A possible workaround, is to scale your scissor coordinates by the ratio between the window size and your game resolution. Calculate scale_x = window_get_width() / global.ideal_width and scale_y = window_get_height() / global.ideal_height, then multiply your scissor x, y, width, and height by these scale factors before passing them to gpu_set_scissor(). This workaround is purely theoretical though because my current schedule doesn’t allow me to write this fix and test it.

I’ll update the script with a proper fix after I ship my current project. Thanks for reporting this and for your patience.