Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Large frame jitter while having a very small extra window

A topic by One to One created 10 days ago Views: 90 Replies: 7
Viewing posts 1 to 6

Apparently the smaller the window size, the less fps I have, with 1 extra it is still possible, but with more than 1 it becomes unfeasible, I tried with two 64x64 windows. Works great with larger sizes like 800x800 





I tested it on a blank project and it also happened, the effect increases when the window is in focus

I make this simple code:

//Create

var config = new winwin_config();

config.caption = "Hello!";

config.resize = true;

global.window = [[window_get_x() + 800,window_get_y(), 100,100],

[window_get_x() + 900,window_get_y(), 400,400],

[window_get_x() + 1000,window_get_y(), 100,100]]

for(var i = 0; i < array_length(global.window); i++)

global.window[i] = winwin_create(global.window[i][0],global.window[i][1], global.window[i][2],global.window[i][3], config);

//Draw

for(var i = 0; i < array_length(global.window); i++){

winwin_draw_begin(global.window[i]);

winwin_draw_clear(#405070);

winwin_draw_end();

}

I tested a little more and found the cause of my problem, but I didn't test as much. Apparently if the second extra window created is in smaller proportions the FPS of the main window drops considerably, in the example it works well at 400x400, but if I change it to 200x200 the problem happens

Developer

I’m not seeing this on my end by adding this to “basics” example:

Do you perhaps have a frame limit forced on in GPU settings? That’s known to cause issues on NVIDIA drivers because the driver is unprepared to count frames in several windows.

setting the "extra" window size to 200x200 makes this happen for me in the basic example too, I checked in the nvidia control panel and the maximum frame rate options are turned off

Developer

Not for me…

Perhaps there is more to it? I’m also noticing that semi-transparent windows don’t work on your end

I found the cause of the problem, I had a Windows setting activated:

Settings > Gaming > Game Mode > Graphics > Windowed Game Optimizations - Reduce latency and use advanced features in supported games using the flip presentation model (was active).

Suggestion: I imagine that it is not and should not be possible to simply turn off this user option, but perhaps there could be a variable that identifies whether this option is turned on or not (and nvidia's too since it is the same idea), so a " warning" could be added to the game.

Developer

I can definitely add something if there’s a way to retrieve this that does not involve me reverse-engineering the NVIDIA driver (pretty sure that all settings are stored in that multi-megabyte e nvdrsdb0.bin file) or setting up a brand new Win11 install in a VM to figure out what registry path the setting gets stored in (if at all).