Jump to content

Frame Lag


StOneDOes
 Share

Go to solution Solved by StOneDOes,

Recommended Posts

Has anybody else experienced frame lag when you have a framerate that is well above the refresh rate of your screen, with VSync disabled. I have old screens that have a 60hz refresh rate so I don't know what it would look like with VSync on, on a high refresh rate but for me it is way too slow on 60 VSync. 

I can get some video of this if needed but want to see if people have ideas first. Whats interesting is that this does not occur on every run, only sometimes. This is in release mode.

image.png.9085c3e80472fa7384ea8a47216353b4.png

Windows 10

AMD Ryzen 9 3900X

AMD Radeon RX 6600 XT

 

Link to comment
Share on other sites

Okay, so you are saying the main game loop feels like it is slowing down. You can check this like this:

auto tm = Millisecs();

while (true)
{
	auto newtime = Millisecs();
	auto elapsed = newtime - tm;
	tm = newtime;
	window->SetText(elapsed);
  	
	world->Update();
	world->Render(framebuffer);
}

The number in the window titlebar should be 16-17 at all times.

You can also check world->physicsstats.physicstime to see how long the physics thread is taking. Call world->RecordStats(true) to enable stats recording.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Also close your web browser. I have noticed just having a web browser open, even if it is minimized, gives me slightly inconsistent timing.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • Solution

Ok, so of course as usual after spending days investigating something myself, I post and then figure it out not long later ...

Fow now Josh, I think we can put this down to AMD Adrenaline software. I'm unable to reproduce this after disabling the software. I'll mark this as solved but please give me a few days before locking this thread if you don't mind incase I can reproduce it again. Thanks for your help.

  • Like 1
Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...