Friday Facts #70 - The smooth fps

Regular reports on Factorio development.
TBog
Inserter
Inserter
Posts: 34
Joined: Tue Feb 03, 2015 3:15 pm
Contact:

Re: Friday Facts #70 The smooth fps

Post by TBog »

It seems you need to double buffer the 'data' that is 'collected'. This way you will render data that was generated the previous update while generating data for the next. At least that's what I do. I'm a game developer too.
My current setup at home does not need vsync, I'm using a GSync monitor. Is there any way to make the game run at a variable fps? min 30 max 144

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Friday Facts #70 The smooth fps

Post by kovarex »

TBog wrote:It seems you need to double buffer the 'data' that is 'collected'. This way you will render data that was generated the previous update while generating data for the next. At least that's what I do. I'm a game developer too.
My current setup at home does not need vsync, I'm using a GSync monitor. Is there any way to make the game run at a variable fps? min 30 max 144
Gsync, that would be great if more than just a few people had it :)

ltnickmage
Burner Inserter
Burner Inserter
Posts: 13
Joined: Thu Jan 15, 2015 10:18 pm
Contact:

Re: Friday Facts #70 The smooth fps

Post by ltnickmage »

What is GSync and VSync and what is the difference between the two?

Gammro
Filter Inserter
Filter Inserter
Posts: 360
Joined: Wed Oct 09, 2013 1:45 pm
Contact:

Re: Friday Facts #70 The smooth fps

Post by Gammro »

If I'm correct, Gsync also synchronises the refreshrate of the screen with your FPS. Vsync only synchronises with the refreshrate of your monitor.
So if you get less than 60FPS on a 60Hz screen, say 50 FPS, vsync would limit the FPS to 30. Gsync would leave the FPS at 50, only let the screen refresh as soon as a frame is ready to be displayed, effectively making it 50Hz.

Image
Image

http://www.geforce.com/hardware/technology/g-sync/faq
Ignore this

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: Friday Facts #70 The smooth fps

Post by MF- »

Somehow this particular FF #70 won't load for me and shows only a blank page.
FF #71 loads fine

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: Friday Facts #70 The smooth fps

Post by MF- »

HA
This is where the problem lies.
The link poinst to the expected URL http://www.factorio.com/blog/post/fff-70
But the actual FF#70 lives on t URL http://www.factorio.com/blog/post/fff-79

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Friday Facts #70 The smooth fps

Post by kovarex »

MF- wrote:HA
This is where the problem lies.
The link poinst to the expected URL http://www.factorio.com/blog/post/fff-70
But the actual FF#70 lives on t URL http://www.factorio.com/blog/post/fff-79
Fixed

sient
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Oct 23, 2016 4:18 am
Contact:

Re: Friday Facts #70 - The smooth fps

Post by sient »

In the blog post, you mention some changes to the Lua interpreter source code to make it more deterministic. Any chance of publishing the diffs? :)
Deterministic scripting

Kuba solved the problem, that mods that used scripts in a certain way (iterating over the values of a hash table), had non deterministic order. The result of this was desync related to various mods doing this quite common thing. The fix involved changing some very deep internals of the lua (the scripting language used in factorio) implementation, so let's hope we didn't break anything.

Koub
Global Moderator
Global Moderator
Posts: 7175
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Friday Facts #70 - The smooth fps

Post by Koub »

by kovarex » Sat 07 Feb 2015, 8:46
by sient » Sun 23 Oct 2016, 5:32

Got Necro ? :)
Koub - Please consider English is not my native language.

sient
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Oct 23, 2016 4:18 am
Contact:

Re: Friday Facts #70 - The smooth fps

Post by sient »

Koub wrote:by kovarex » Sat 07 Feb 2015, 8:46
by sient » Sun 23 Oct 2016, 5:32

Got Necro ? :)
Yea, but making Lua deterministic is pretty interesting, and I couldn't find a better place to post/ask. :)

I thought about filing a bug report but that seems like the wrong mechanism to use.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Friday Facts #70 - The smooth fps

Post by ssilk »

You could just ask: info@factorio.com ?
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Post Reply

Return to “News”