unleash game.speed cap

AntiElitz
Filter Inserter
Filter Inserter
Posts: 456
Joined: Sat Aug 29, 2015 11:37 pm
Contact:

unleash game.speed cap

Post by AntiElitz »

why did game.speed get capped to 5? Personally i used values up to 100 for testing purposes and i am frustrated tha last days that testing takes ages now :/

I would really appreaciate the cap to be removed again :) !
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: unleash game.speed cap

Post by aubergine18 »

Maybe if the cap only applied to MP games, but was unlimited for SP games? Most mod and idea testing is done in SP.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: unleash game.speed cap

Post by Adil »

The updates are definitely capped at 300 per second now. In 0.12 my computer could pull of 2000/sec.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14281
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: unleash game.speed cap

Post by Rseding91 »

There is no upper cap. It's just what your computer can handle.
If you want to get ahold of me I'm almost always on Discord.
AntiElitz
Filter Inserter
Filter Inserter
Posts: 456
Joined: Sat Aug 29, 2015 11:37 pm
Contact:

Re: unleash game.speed cap

Post by AntiElitz »

Rseding91 wrote:There is no upper cap. It's just what your computer can handle.
You can definitly not go over 300 UPS anymore. It's possible in 0.13.20 but not in 0.14.7 anymore. At least not per ingame command.

aubergine18 wrote:Maybe if the cap only applied to MP games, but was unlimited for SP games? Most mod and idea testing is done in SP.
Seems like a good idea for a fix!
Rseding91
Factorio Staff
Factorio Staff
Posts: 14281
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: unleash game.speed cap

Post by Rseding91 »

AntiElite wrote:
Rseding91 wrote:There is no upper cap. It's just what your computer can handle.
You can definitly not go over 300 UPS anymore. It's possible in 0.13.20 but not in 0.14.7 anymore. At least not per ingame command.

aubergine18 wrote:Maybe if the cap only applied to MP games, but was unlimited for SP games? Most mod and idea testing is done in SP.
Seems like a good idea for a fix!
Yes you can: https://gfycat.com/RightEarlyAmericancrocodile
If you want to get ahold of me I'm almost always on Discord.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: unleash game.speed cap

Post by Adil »

Tested again, smallish map of 100x100, in 12.33 the updates are thousands and oscillate based on happenings in 14.07 its solid 300 updates.
Tested even again on 2x2 map and didn't go over 300 in 0.14.07
Something weird happens, when factorio is minimized, the game goes fast, when you restore the window, you can notice the updates falling back to 300. I've even disabled vsync and it still happens like this.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: unleash game.speed cap

Post by Adil »

Here's what my attempt to recreate your example, rsending. Sorry I don't have any image hosting, and I believe the webm will be lighter.
Attachments
screencast.mp4.zip
(461.15 KiB) Downloaded 91 times
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
AntiElitz
Filter Inserter
Filter Inserter
Posts: 456
Joined: Sat Aug 29, 2015 11:37 pm
Contact:

Re: unleash game.speed cap

Post by AntiElitz »

Tested and found the reason: The gamespeed caps at 300 when v-sync is activated, but is uncapped when not.
Not sure if a bug or intentional. If it's a bug pls move it to the bug section.

Thanks for the answer rseding (and video proof)
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: unleash game.speed cap

Post by Adil »

I wonder why doesn't that work on my computer.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
AntiElitz
Filter Inserter
Filter Inserter
Posts: 456
Joined: Sat Aug 29, 2015 11:37 pm
Contact:

Re: unleash game.speed cap

Post by AntiElitz »

Adil wrote:I wonder why doesn't that work on my computer.
Maybe you didn't restart factorio? Is v-Sync forced by another app?
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: unleash game.speed cap

Post by aubergine18 »

Can title of OP be edited to mark this issue solved? It was fixed in 0.14.9 viewtopic.php?f=3&t=33253
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “Implemented mod requests”