Performance weirdness

Things that has been reported already before.

Performance weirdness

Postby markjn » Sat May 05, 2018 5:39 pm

So, this isn't about how slow or fast the game is. It is about a weird thing I noticed since I started playing again, about a month ago.

I'll be playing at normal speed, then all of the sudden, UPS drops to 30 on the dot. Not 29. not 31. In my search to figure out what was going on, I figured out a fix that makes me think this is a weird bug.

All I have to do is press f5 to bring up the stats. Then UPS goes back up to 60 and I press f5 again to clear the screen. 5-10 minutes later, my guy suddenly walks slower again. I cycle f5 again, and things return to normal.

My computer:
stuff
Ubuntu 18.04 (also did this on 17.10)
Here's lshw

description: Computer
width: 64 bits
capabilities: smp vsyscall32
*-core
description: Motherboard
physical id: 0
*-memory
description: System memory
physical id: 0
size: 15GiB
*-cpu
product: AMD FX(tm)-8350 Eight-Core Processor
vendor: Advanced Micro Devices [AMD]
physical id: 1
bus info: cpu@0
size: 1869MHz
capacity: 4GHz
width: 64 bits
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp x86-64 constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold cpufreq
*-pci:0
description: Host bridge
product: RD9x0/RX980 Host Bridge
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 100
bus info: pci@0000:00:00.0
version: 02
width: 32 bits
clock: 33MHz
*-pci:0
description: PCI bridge
product: RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GFX port 0)
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:18 ioport:c000(size=4096) memory:fd100000-fd1fffff ioport:c0000000(size=536870912)
*-display
description: VGA compatible controller
product: Ellesmere [Radeon RX 470/480]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:01:00.0
version: c7
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list rom
configuration: driver=amdgpu latency=0
resources: irq:29 memory:c0000000-cfffffff memory:dfe00000-dfffffff ioport:ce00(size=256) memory:fd180000-fd1bffff memory:c0000-dffff
*-multimedia
description: Audio device
product: Advanced Micro Devices, Inc. [AMD/ATI]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0.1
bus info: pci@0000:01:00.1
version: 00
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:30 memory:fd1fc000-fd1fffff
*-pci:1
description: PCI bridge
product: RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 4)
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 9
bus info: pci@0000:00:09.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:17 ioport:b000(size=4096) memory:fd000000-fd0fffff ioport:fde00000(size=1048576)
*-usb
description: USB controller
product: EJ168 USB 3.0 Host Controller
vendor: Etron Technology, Inc.
physical id: 0
bus info: pci@0000:02:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: xhci bus_master cap_list
configuration: driver=xhci_hcd latency=0
resources: irq:25 memory:fd0f8000-fd0fffff
*-pci:2
description: PCI bridge
product: RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 5)
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: a
bus info: pci@0000:00:0a.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:18 ioport:e000(size=4096) memory:fdd00000-fddfffff ioport:fdc00000(size=1048576)
*-storage
description: SATA controller
product: 88SE9172 SATA 6Gb/s Controller
vendor: Marvell Technology Group Ltd.
physical id: 0
bus info: pci@0000:03:00.0
version: 11
width: 32 bits
clock: 33MHz
capabilities: storage ahci_1.0 bus_master cap_list rom
configuration: driver=ahci latency=0
resources: irq:27 ioport:ef00(size=8) ioport:ee00(size=4) ioport:ed00(size=8) ioport:ec00(size=4) ioport:eb00(size=16) memory:fddff000-fddff1ff memory:fdd00000-fdd0ffff
*-pci:3
description: PCI bridge
product: RD890/RD990 PCI to PCI bridge (PCI Express GFX2 port 0)
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: b
bus info: pci@0000:00:0b.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:19 ioport:d000(size=4096) memory:fdb00000-fdbfffff ioport:fd800000(size=1048576)
*-network
description: Wireless interface
product: AR93xx Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:04:00.0
logical name: wlp4s0
version: 01
serial: ec:08:6b:79:9c:24
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list rom ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=4.15.0-15-generic firmware=N/A ip=192.168.1.6 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:19 memory:fdbc0000-fdbdffff memory:fdb00000-fdb0ffff
*-storage
description: SATA controller
product: SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 11
bus info: pci@0000:00:11.0
version: 40
width: 32 bits
clock: 66MHz
capabilities: storage ahci_1.0 bus_master cap_list
configuration: driver=ahci latency=32
resources: irq:19 ioport:ff00(size=8) ioport:fe00(size=4) ioport:fd00(size=8) ioport:fc00(size=4) ioport:fb00(size=16) memory:fdfff000-fdfff3ff
*-usb:0
description: USB controller
product: SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 12
bus info: pci@0000:00:12.0
version: 00
width: 32 bits
clock: 66MHz
capabilities: ohci bus_master
configuration: driver=ohci-pci latency=32
resources: irq:18 memory:fdffe000-fdffefff
*-usb:1
description: USB controller
product: SB7x0/SB8x0/SB9x0 USB EHCI Controller
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 12.2
bus info: pci@0000:00:12.2
version: 00
width: 32 bits
clock: 66MHz
capabilities: ehci bus_master cap_list
configuration: driver=ehci-pci latency=32
resources: irq:17 memory:fdffd000-fdffd0ff
*-usb:2
description: USB controller
product: SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 13
bus info: pci@0000:00:13.0
version: 00
width: 32 bits
clock: 66MHz
capabilities: ohci bus_master
configuration: driver=ohci-pci latency=32
resources: irq:18 memory:fdffc000-fdffcfff
*-usb:3
description: USB controller
product: SB7x0/SB8x0/SB9x0 USB EHCI Controller
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 13.2
bus info: pci@0000:00:13.2
version: 00
width: 32 bits
clock: 66MHz
capabilities: ehci bus_master cap_list
configuration: driver=ehci-pci latency=32
resources: irq:17 memory:fdffb000-fdffb0ff
*-serial UNCLAIMED
description: SMBus
product: SBx00 SMBus Controller
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 14
bus info: pci@0000:00:14.0
version: 42
width: 32 bits
clock: 66MHz
configuration: latency=0
*-ide
description: IDE interface
product: SB7x0/SB8x0/SB9x0 IDE Controller
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 14.1
bus info: pci@0000:00:14.1
version: 40
width: 32 bits
clock: 66MHz
capabilities: ide bus_master
configuration: driver=pata_atiixp latency=32
resources: irq:17 ioport:1f0(size=8) ioport:3f6 ioport:170(size=8) ioport:376 ioport:fa00(size=16)
*-multimedia
description: Audio device
product: SBx00 Azalia (Intel HDA)
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 14.2
bus info: pci@0000:00:14.2
version: 40
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=snd_hda_intel latency=32
resources: irq:16 memory:fdff4000-fdff7fff
*-isa
description: ISA bridge
product: SB7x0/SB8x0/SB9x0 LPC host controller
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 14.3
bus info: pci@0000:00:14.3
version: 40
width: 32 bits
clock: 66MHz
capabilities: isa bus_master
configuration: latency=0
*-pci:4
description: PCI bridge
product: SBx00 PCI to PCI Bridge
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 14.4
bus info: pci@0000:00:14.4
version: 40
width: 32 bits
clock: 66MHz
capabilities: pci subtractive_decode bus_master vga_palette
resources: ioport:a000(size=4096) memory:fda00000-fdafffff memory:fd900000-fd9fffff
*-firewire
description: FireWire (IEEE 1394)
product: VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller
vendor: VIA Technologies, Inc.
physical id: e
bus info: pci@0000:05:0e.0
version: c0
width: 32 bits
clock: 33MHz
capabilities: ohci bus_master cap_list
configuration: driver=firewire_ohci latency=32 maxlatency=32
resources: irq:22 memory:fdaff000-fdaff7ff ioport:af00(size=128)
*-usb:4
description: USB controller
product: SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 14.5
bus info: pci@0000:00:14.5
version: 00
width: 32 bits
clock: 66MHz
capabilities: ohci bus_master
configuration: driver=ohci-pci latency=32
resources: irq:18 memory:fdffa000-fdffafff
*-pci:5
description: PCI bridge
product: SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 15
bus info: pci@0000:00:15.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:17 ioport:9000(size=4096) memory:fd700000-fd7fffff ioport:fd600000(size=1048576)
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:06:00.0
logical name: enp6s0
version: 06
serial: 90:2b:34:d2:33:1f
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
resources: irq:26 ioport:9e00(size=256) memory:fd6ff000-fd6fffff memory:fd6f8000-fd6fbfff
*-pci:6
description: PCI bridge
product: SB700/SB800/SB900 PCI to PCI bridge (PCIE port 1)
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 15.1
bus info: pci@0000:00:15.1
version: 00
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:17 ioport:8000(size=4096) memory:fd500000-fd5fffff ioport:fd400000(size=1048576)
*-usb
description: USB controller
product: EJ168 USB 3.0 Host Controller
vendor: Etron Technology, Inc.
physical id: 0
bus info: pci@0000:07:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: xhci bus_master cap_list
configuration: driver=xhci_hcd latency=0
resources: irq:24 memory:fd5f8000-fd5fffff
*-pci:7
description: PCI bridge
product: SB900 PCI to PCI bridge (PCIE port 2)
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 15.2
bus info: pci@0000:00:15.2
version: 00
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:17 ioport:7000(size=4096) memory:fd300000-fd3fffff ioport:fd200000(size=1048576)
*-storage
description: SATA controller
product: 88SE9172 SATA 6Gb/s Controller
vendor: Marvell Technology Group Ltd.
physical id: 0
bus info: pci@0000:08:00.0
version: 11
width: 32 bits
clock: 33MHz
capabilities: storage ahci_1.0 bus_master cap_list rom
configuration: driver=ahci latency=0
resources: irq:28 ioport:7f00(size=8) ioport:7e00(size=4) ioport:7d00(size=8) ioport:7c00(size=4) ioport:7b00(size=16) memory:fd3ff000-fd3ff1ff memory:fd300000-fd30ffff
*-usb:5
description: USB controller
product: SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 16
bus info: pci@0000:00:16.0
version: 00
width: 32 bits
clock: 66MHz
capabilities: ohci bus_master
configuration: driver=ohci-pci latency=32
resources: irq:18 memory:fdff9000-fdff9fff
*-usb:6
description: USB controller
product: SB7x0/SB8x0/SB9x0 USB EHCI Controller
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 16.2
bus info: pci@0000:00:16.2
version: 00
width: 32 bits
clock: 66MHz
capabilities: ehci bus_master cap_list
configuration: driver=ehci-pci latency=32
resources: irq:17 memory:fdff8000-fdff80ff
*-pci:1
description: Host bridge
product: Family 15h Processor Function 0
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 101
bus info: pci@0000:00:18.0
version: 00
width: 32 bits
clock: 33MHz
*-pci:2
description: Host bridge
product: Family 15h Processor Function 1
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 102
bus info: pci@0000:00:18.1
version: 00
width: 32 bits
clock: 33MHz
*-pci:3
description: Host bridge
product: Family 15h Processor Function 2
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 103
bus info: pci@0000:00:18.2
version: 00
width: 32 bits
clock: 33MHz
*-pci:4
description: Host bridge
product: Family 15h Processor Function 3
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 104
bus info: pci@0000:00:18.3
version: 00
width: 32 bits
clock: 33MHz
configuration: driver=k10temp
resources: irq:0
*-pci:5
description: Host bridge
product: Family 15h Processor Function 4
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 105
bus info: pci@0000:00:18.4
version: 00
width: 32 bits
clock: 33MHz
configuration: driver=fam15h_power
resources: irq:0
*-pci:6
description: Host bridge
product: Family 15h Processor Function 5
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 106
bus info: pci@0000:00:18.5
version: 00
width: 32 bits
clock: 33MHz
markjn
Burner Inserter
Burner Inserter
 
Posts: 14
Joined: Sat Mar 04, 2017 2:12 am

Re: Performance weirdness

Postby markjn » Sat May 05, 2018 5:44 pm

Also, between it working normally and this problem, I got a 4k second monitor that I run it on.
markjn
Burner Inserter
Burner Inserter
 
Posts: 14
Joined: Sat Mar 04, 2017 2:12 am

Re: Performance weirdness

Postby Loewchen » Sat May 05, 2018 5:54 pm

Loewchen
Global Moderator
Global Moderator
 
Posts: 4453
Joined: Wed Jan 07, 2015 5:53 pm

Re: Performance weirdness

Postby Zavian » Sat May 05, 2018 5:56 pm

Post your log and the screenshots requested in this thread viewtopic.php?f=7&t=51319 . But my guess is that vsync is on, and performance has dropped under 60 ups. Turning vsync off will probably get you back to just a few fps less than 60 fps.
Zavian
Filter Inserter
Filter Inserter
 
Posts: 937
Joined: Thu Mar 02, 2017 2:57 am

Re: Performance weirdness

Postby Jap2.0 » Sat May 05, 2018 6:17 pm

Zavian wrote:Post your log and the screenshots requested in this thread viewtopic.php?f=7&t=51319 . But my guess is that vsync is on, and performance has dropped under 60 ups. Turning vsync off will probably get you back to just a few fps less than 60 fps.

But doesn't that just affect FPS, not UPS? It certainly sounds like vsync, though.
There are 10 types of people: those who get this joke and those who don't.
Jap2.0
Smart Inserter
Smart Inserter
 
Posts: 1481
Joined: Tue Jun 20, 2017 12:02 am

Re: Performance weirdness

Postby markjn » Sat May 05, 2018 6:26 pm

logs
Attachments
factorio-previous.log
(13.2 KiB) Downloaded 8 times
factorio-current.log
(6.96 KiB) Downloaded 6 times
markjn
Burner Inserter
Burner Inserter
 
Posts: 14
Joined: Sat Mar 04, 2017 2:12 am

Re: Performance weirdness

Postby markjn » Sat May 05, 2018 7:06 pm

Normal screenshot. I'll try to get a shot the next time it happens. Maybe a shot when it sits at 30, then a couple after I hit f5, f6 or f7as it quickly climbs to 60? Vsync is off. Before I knew how to fix it, UPS would randomly, after another 5-10 minutes, climb again to 60 then drop again to 30 a while later.

Also, believe me, I understand the desire to blow off bug reports because of insufficient information. But it's a stupid move IMO to require anyone who has a problem to jump through a bunch of technical hoops. People will just not report them. Maybe Factorio can get away with it because a huge percentage of their fans are devs themselves. I'm prob just jealous that rules like that don't work at my job.
Attachments
Screenshot from 2018-05-05 12-02-15.png
Screenshot from 2018-05-05 12-02-15.png (14.72 MiB) Viewed 204 times
markjn
Burner Inserter
Burner Inserter
 
Posts: 14
Joined: Sat Mar 04, 2017 2:12 am

Re: Performance weirdness

Postby Loewchen » Sat May 05, 2018 9:53 pm

So if you have any debug overlay active it will run at 60 UPS even when its just the FPS/UPS display?
Loewchen
Global Moderator
Global Moderator
 
Posts: 4453
Joined: Wed Jan 07, 2015 5:53 pm

Re: Performance weirdness

Postby markjn » Sun May 06, 2018 12:40 am

Loewchen wrote:So if you have any debug overlay active it will run at 60 UPS even when its just the FPS/UPS display?


Nah, I have FPS/UPS display on usually. It takes the higher level debug screen to fix it. Weird right? These 2 screen shots were taken maybe 10 seconds apart. Lower then higher UPS. Between them, I pressed f5 twice to turn debug info on and off. It wasn't 30 UPS on the dot this time, but sometimes it is. Maybe it bottoms out there? I've never seen uner 30.0,
Attachments
Screenshot from 2018-05-05 17-30-32.png
Screenshot from 2018-05-05 17-30-32.png (3.76 MiB) Viewed 185 times
Screenshot from 2018-05-05 17-30-50.png
Screenshot from 2018-05-05 17-30-50.png (3.74 MiB) Viewed 185 times
markjn
Burner Inserter
Burner Inserter
 
Posts: 14
Joined: Sat Mar 04, 2017 2:12 am

Re: Performance weirdness

Postby Rseding91 » Thu May 17, 2018 5:28 pm

This is a long standing problem related to vsync that may or may not be solved by our attempts to switch to DirectX11 and a newer version of OpenGL in one of the future versions of the game.

Until then, disable vsync.
If you want to get ahold of me I'm almost always on IRC and Discord.
Rseding91
Factorio Staff
Factorio Staff
 
Posts: 7631
Joined: Wed Jun 11, 2014 5:23 am


Return to Duplicates

Who is online

Users browsing this forum: No registered users and 0 guests