Jump to content

Recommended Posts

Posted

Wasn't sure where to post this but the bug forum seemed most appropriate. 

Okay,  I'm using the code on the forum to produce this - I have a 2800 x1700 window that I'm scaling the res to 1920x1080.

When I run the application I get some heavy stutter and spikes in gameplay, dropping to zero fps then climbing very high but not playable.

The odd thing this does not happen everytime, it's like random.. Sometimes it runs perfectly fine and smooth with the same settings. 

I managed to capture the stutter and smooth sessions in the two videos below.

This one stutters - but If i dont touch the mouse or movement on the player it will catch back up and run smoothly until I attempt to move again.

This one plays fine, mind you that no code was changed, this is just a random occurrence .

 

I have tried it both ways, with and without post effects...  same results.

 

Posted

You know, I made that example very quickly, and I should have set the camera render layers to 0 for the ortho camera, so that nothing would be drawn.

The scene is being drawn to the second camera as well right now, and the directional light shadow might even be getting renderered twice.

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

  • Solution
Posted

Please try adding this code:


orthocam:SetRenderLayers(0)

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

Posted

I have a 3000 x 2200 window  and im scaling the gfx from 1400 x 870 and I must say, theres not a huge change in gfx, I noticed a few spots but running the same scene between 400 - 500 fps ! Where i was getting around 90.

I may be able to afford turning tessallation on now!

Thats sick!

image.thumb.png.b93c5368f59260f12f8f5d8a8c3370b3.png

  • Like 2
Posted

It's nothing fancy, just stretching the texture. AMD's FSR does the same thing, but offsets the camera a tiny bit each frame so that it can get multiple samples it uses to make sharper edges, as I understand it. (FSR works on Nvidia cards too.)

  • Thanks 1

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

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.

×
×
  • Create New...