x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Turning VSync On

Hi, so I have an issue with the game that I've packaged and tried on the PC's at my Uni, I'm getting a lot of frame tearing on them. After a little looking, I've found some helpful posts here and there about this but none that actually work, I think the code may vary from version to version of UE4 perhaps? for the record this is on 4.11.2

I was wondering how can I turn on VSync to stop this? preferable as a command line to type into the running game because I have a packaged version on the computers already. If not how can I turn it on in the editor and then repackage to have it on??

Thanks, Rob

Product Version: UE 4.11
Tags:
more ▼

asked May 25 '16 at 04:29 PM in Packaging & Deployment

avatar image

Rob3342421
1 1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Rob,

You can do this a couple of ways:

Require repackaging:

  • You can repackage the game with a command run in the game level for r.vsync 1. Use the Execute Console Command node.

  • You can set the r.Vsync=1 console variable in the DefaultEngine.ini file IIRC under the rendering section.

Already Packaged Game:

I hope this helps.

Tim

more ▼

answered May 26 '16 at 03:17 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 888 103 878

avatar image andoalon Jun 08 '19 at 02:46 PM

You can use the SetVSyncEnabled node instead of the console command: https://api.unrealengine.com/INT/BlueprintAPI/Settings/SetVSyncEnabled/index.html

You need to pass it the Game User Settings, you can obtain that using GetGameUserSettings: https://docs.unrealengine.com/en-US/BlueprintAPI/Settings/GetGameUserSettings/index.html

To actually make the change you need to call ApplySettings: http://api.unrealengine.com/INT/BlueprintAPI/Settings/ApplySettings/index.html

So you would write: GetGameUserSettings -> SetVSyncEnabled -> ApplySettings

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question