Jump to content

Slight freeze every 5 seconds (or so)


Recommended Posts

Ah yes, the "I don't have it so it doesn't exist answer". This bug has been reported to the tracker many times in the past and I believe the reason it hasn't been fixed is because it is a unity garbage collector issue and is something unity needs to fix and Squad can't. The sound stutter was part of this bug, and even if it didn't actually cause the game to skip a frame it was still part of the same problem. Like I said earlier, the problem may be magnified on a specific users end, but it is not originating there.

Pretty sure that's not what sal_vager meant.

Besides, you just said that it's a unity problem that SQUAD can't fix. The best you can do is hope that it's been fixed in Unity5.

Link to comment
Share on other sites

Then get more info, full system specs, running programs, even mouse DPI, not anecdotes.

Yeah there's a Unity issue, but again it's not affecting everyone, so the question is "why?"

Edit:

We need guys on Windows who do not have stutter to provide info as well.

Edited by sal_vager
Link to comment
Share on other sites

This GC issue is much better for me in 1.0, I rarely notice it now.

That means, I do notice it from time to time, but its rare.

I'm running Stock + Claw's fixes, 25 flights, 30 debris.

It made building craft in .90 a chore & I would usually restart KSP, to clear it out for a while.

Link to comment
Share on other sites

I'll just chime in because I've spent 10+ hours trying to fix it to no avail:

- on a few recent versions of KSP

- on all of Windows x32, x64 ("community workaround"), Ubuntu and LMDE x64

- both unmodded and modded

- v-sync on/off, g-sync on/off

- OpenGL and DX9 (haven't tried DX11 yet...)

- software and hardware DPI set to 125Hz (Linux fix referenced elsewhere)

- with a variety of drivers / driver settings / settings.cfg.

It just won't go away on my system (4690K / current SSD / 8GB RAM / 2X GTX970).

I am not sure it is a GC issue -- there are plenty of discussions on the Unity forum of other potential causes, mostly from a developer perspective -- for example, http://answers.unity3d.com/questions/275016/updatefixedupdate-motion-stutter-not-another-novic.html .

Anyway, I recognize over time that the discussion of this issue seems to elicit almost "Morgellons" like debate and finger pointing, but I would really love a solution, and as KSP is possibly the most enjoyable and deep game I've ever played, I don't care one bit whose fault it ultimately is, Unity, Squad, or my own.

Edited by antilochus
Link to comment
Share on other sites

Then get more info, full system specs, running programs, even mouse DPI, not anecdotes.

System:    Host: perdition Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: KDE 4.14.2 (Qt 4.8.6) dm: kdm Distro: Debian GNU/Linux 8
Machine: Mobo: ASUSTeK model: P9X79 v: Rev 1.xx Bios: American Megatrends v: 4005 date: 04/18/2013
CPU: Quad core Intel Core i7-3820 (-HT-MCP-) cache: 10240 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 28799
Clock Speeds: 1: 1214 MHz 2: 1279 MHz 3: 1443 MHz 4: 1976 MHz 5: 1385 MHz 6: 1387 MHz 7: 1200 MHz
8: 1731 MHz
Graphics: Card: NVIDIA GK104 [GeForce GTX 680] bus-ID: 02:00.0 chip-ID: 10de:1180
Display Server: X.Org 1.16.4 driver: nvidia Resolution: [email protected]
GLX Renderer: GeForce GTX 680/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 349.12 Direct Rendering: Yes
Audio: Card-1 NVIDIA GK104 HDMI Audio Controller driver: snd_hda_intel bus-ID: 02:00.1 chip-ID: 10de:0e0a
Card-2 Intel C600/X79 series High Definition Audio Controller
driver: snd_hda_intel bus-ID: 00:1b.0 chip-ID: 8086:1d20
Sound: Advanced Linux Sound Architecture v: k3.16.0-4-amd64
Network: Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8168 v: 8.039.00-NAPI port: d000 bus-ID: 05:00.0 chip-ID: 10ec:8168
IF: eth0 state: up speed: 1000 Mbps duplex: full mac: 00:08:a1:c6:3f:e4
Card-2: Intel 82579V Gigabit Network Connection
driver: e1000e v: 2.3.2-k port: f040 bus-ID: 00:19.0 chip-ID: 8086:1503
IF: eth1 state: up speed: 1000 Mbps duplex: full mac: c8:60:00:01:e3:b1
Drives: HDD Total Size: 676.2GB (29.5% used)
ID-1: /dev/sda model: WDC_WD3000GLFS size: 300.1GB serial: WD-WXL408732128
ID-2: /dev/sdc model: Crucial_CT256MX1 size: 256.1GB serial: 14370D349EDD
ID-3: /dev/sdb model: OCZ size: 120.0GB serial: OCZ-3KWB0W8IGH9RX1O2
Partition: ID-1: / size: 16G used: 7.9G (53%) fs: ext4 dev: /dev/sdc2
ID-2: /boot size: 2.0G used: 770M (40%) fs: ext2 dev: /dev/sdc1
ID-3: /var size: 110G used: 1.6G (2%) fs: ext4 dev: /dev/sdb1
ID-4: /home size: 217G used: 176G (86%) fs: ext4 dev: /dev/sdc3
Sensors: System Temperatures: cpu: 41.0C mobo: 35.0C gpu: 0.0:40C
Fan Speeds (in rpm): cpu: N/A fan-1: 0 fan-2: 984 fan-3: 0 fan-4: 0 fan-5: 0
Info: Processes: 240 Uptime: 3 days Memory: 2723.8/16030.1MB
Init: systemd v: 215 runlevel: 5 default: 5 Gcc sys: 4.9.2 alt: 4.8
Client: Shell (bash 4.3.301 running in konsole) inxi: 2.1.28

lspci:

00:00.0 Host bridge: Intel Corporation Xeon E5/Core i7 DMI2 (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 1a (rev 07)
00:02.0 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 2a (rev 07)
00:03.0 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 3a in PCI Express Mode (rev 07)
00:05.0 System peripheral: Intel Corporation Xeon E5/Core i7 Address Map, VTd_Misc, System Management (rev 07)
00:05.2 System peripheral: Intel Corporation Xeon E5/Core i7 Control Status and Global Errors (rev 07)
00:05.4 PIC: Intel Corporation Xeon E5/Core i7 I/O APIC (rev 07)
00:11.0 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Virtual Root Port (rev 05)
00:16.0 Communication controller: Intel Corporation C600/X79 series chipset MEI Controller #1 (rev 05)
00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 05)
00:1a.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation C600/X79 series chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 2 (rev b5)
00:1c.3 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 5 (rev b5)
00:1c.5 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 6 (rev b5)
00:1d.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #1 (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation C600/X79 series chipset LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation C600/X79 series chipset 6-Port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation C600/X79 series chipset SMBus Host Controller (rev 05)
02:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 680] (rev a1)
02:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 01)
06:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
07:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
08:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
09:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller (rev 01)
ff:08.0 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link 0 (rev 07)
ff:08.3 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 0 (rev 07)
ff:08.4 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 0 (rev 07)
ff:09.0 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link 1 (rev 07)
ff:09.3 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 1 (rev 07)
ff:09.4 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 1 (rev 07)
ff:0a.0 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 0 (rev 07)
ff:0a.1 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 1 (rev 07)
ff:0a.2 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 2 (rev 07)
ff:0a.3 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 3 (rev 07)
ff:0b.0 System peripheral: Intel Corporation Xeon E5/Core i7 Interrupt Control Registers (rev 07)
ff:0b.3 System peripheral: Intel Corporation Xeon E5/Core i7 Semaphore and Scratchpad Configuration Registers (rev 07)
ff:0c.0 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0c.1 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0c.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller System Address Decoder 0 (rev 07)
ff:0c.7 System peripheral: Intel Corporation Xeon E5/Core i7 System Address Decoder (rev 07)
ff:0d.0 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0d.1 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0d.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller System Address Decoder 1 (rev 07)
ff:0e.0 System peripheral: Intel Corporation Xeon E5/Core i7 Processor Home Agent (rev 07)
ff:0e.1 Performance counters: Intel Corporation Xeon E5/Core i7 Processor Home Agent Performance Monitoring (rev 07)
ff:0f.0 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Registers (rev 07)
ff:0f.1 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller RAS Registers (rev 07)
ff:0f.2 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 0 (rev 07)
ff:0f.3 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 1 (rev 07)
ff:0f.4 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 2 (rev 07)
ff:0f.5 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 3 (rev 07)
ff:0f.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 4 (rev 07)
ff:10.0 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 0 (rev 07)
ff:10.1 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 1 (rev 07)
ff:10.2 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 0 (rev 07)
ff:10.3 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 1 (rev 07)
ff:10.4 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 2 (rev 07)
ff:10.5 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 3 (rev 07)
ff:10.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 2 (rev 07)
ff:10.7 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 3 (rev 07)
ff:11.0 System peripheral: Intel Corporation Xeon E5/Core i7 DDRIO (rev 07)
ff:13.0 System peripheral: Intel Corporation Xeon E5/Core i7 R2PCIe (rev 07)
ff:13.1 Performance counters: Intel Corporation Xeon E5/Core i7 Ring to PCI Express Performance Monitor (rev 07)
ff:13.4 Performance counters: Intel Corporation Xeon E5/Core i7 QuickPath Interconnect Agent Ring Registers (rev 07)
ff:13.5 Performance counters: Intel Corporation Xeon E5/Core i7 Ring to QuickPath Interconnect Link 0 Performance Monitor (rev 07)
ff:13.6 System peripheral: Intel Corporation Xeon E5/Core i7 Ring to QuickPath Interconnect Link 1 Performance Monitor (rev 07)

lsusb:

Bus 006 Device 005: ID 413c:2106 Dell Computer Corp. Dell QuietKey Keyboard
Bus 006 Device 004: ID 045e:0039 Microsoft Corp. IntelliMouse Optical
Bus 006 Device 003: ID 04f9:0037 Brother Industries, Ltd
Bus 006 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 003: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 005 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Running processes:

  PID TTY      STAT   TIME COMMAND
1 ? Ss 0:02 /sbin/init
2 ? S 0:00 [kthreadd]
3 ? S 0:18 [ksoftirqd/0]
5 ? S< 0:00 [kworker/0:0H]
7 ? S 1:57 [rcu_sched]
8 ? S 0:00 [rcu_bh]
9 ? S 0:00 [migration/0]
10 ? S 0:00 [watchdog/0]
11 ? S 0:00 [watchdog/1]
12 ? S 0:00 [migration/1]
13 ? S 0:17 [ksoftirqd/1]
15 ? S< 0:00 [kworker/1:0H]
16 ? S 0:00 [watchdog/2]
17 ? S 0:01 [migration/2]
18 ? S 0:07 [ksoftirqd/2]
20 ? S< 0:00 [kworker/2:0H]
21 ? S 0:00 [watchdog/3]
22 ? S 0:01 [migration/3]
23 ? S 0:07 [ksoftirqd/3]
25 ? S< 0:00 [kworker/3:0H]
26 ? S 0:00 [watchdog/4]
27 ? S 0:00 [migration/4]
28 ? S 0:04 [ksoftirqd/4]
30 ? S< 0:00 [kworker/4:0H]
31 ? S 0:00 [watchdog/5]
32 ? S 0:00 [migration/5]
33 ? S 0:05 [ksoftirqd/5]
35 ? S< 0:00 [kworker/5:0H]
36 ? S 0:00 [watchdog/6]
37 ? S 0:00 [migration/6]
38 ? S 0:05 [ksoftirqd/6]
40 ? S< 0:00 [kworker/6:0H]
41 ? S 0:00 [watchdog/7]
42 ? S 0:00 [migration/7]
43 ? S 0:04 [ksoftirqd/7]
45 ? S< 0:00 [kworker/7:0H]
46 ? S< 0:00 [khelper]
47 ? S 0:00 [kdevtmpfs]
48 ? S< 0:00 [netns]
49 ? S 0:00 [khungtaskd]
50 ? S< 0:00 [writeback]
51 ? SN 0:00 [ksmd]
52 ? SN 0:00 [khugepaged]
53 ? S< 0:00 [crypto]
54 ? S< 0:00 [kintegrityd]
55 ? S< 0:00 [bioset]
56 ? S< 0:00 [kblockd]
58 ? S 0:02 [kswapd0]
59 ? S 0:00 [fsnotify_mark]
65 ? S< 0:00 [kthrotld]
67 ? S< 0:00 [deferwq]
115 ? S< 0:00 [firewire]
116 ? S 0:00 [khubd]
117 ? S< 0:00 [firewire_ohci]
118 ? S< 0:00 [ata_sff]
123 ? S 0:00 [scsi_eh_0]
124 ? S< 0:00 [scsi_tmf_0]
125 ? S 0:00 [scsi_eh_1]
126 ? S< 0:00 [scsi_tmf_1]
127 ? S 0:00 [scsi_eh_2]
128 ? S< 0:00 [scsi_tmf_2]
129 ? S 0:00 [scsi_eh_3]
130 ? S< 0:00 [scsi_tmf_3]
131 ? S 0:00 [scsi_eh_4]
132 ? S< 0:00 [scsi_tmf_4]
133 ? S 0:00 [scsi_eh_5]
134 ? S< 0:00 [scsi_tmf_5]
141 ? S 0:00 [scsi_eh_6]
142 ? S< 0:00 [scsi_tmf_6]
143 ? S 0:00 [scsi_eh_7]
144 ? S< 0:00 [scsi_tmf_7]
154 ? S< 0:00 [kworker/0:1H]
157 ? S 0:00 [scsi_eh_8]
158 ? S< 0:00 [scsi_tmf_8]
159 ? S 0:11 [usb-storage]
170 ? S< 0:00 [bioset]
189 ? S 0:00 [jbd2/sdc2-8]
190 ? S< 0:00 [ext4-rsv-conver]
224 ? S 0:00 [kauditd]
228 ? Ss 0:00 /lib/systemd/systemd-journald
240 ? Ss 0:00 /lib/systemd/systemd-udevd
245 ? S< 0:00 [iprt]
318 ? S 0:00 [irq/85-mei_me]
338 ? S< 0:03 [kworker/3:1H]
362 ? S< 0:00 [edac-poller]
371 ? S< 0:00 [kpsmoused]
374 ? S< 0:00 [hd-audio1]
375 ? S< 0:00 [hd-audio0]
419 ? S< 0:00 [led_workqueue]
476 ? S< 0:00 [kvm-irqfd-clean]
488 ? S< 0:00 [ext4-rsv-conver]
490 ? S 0:01 [jbd2/sdb1-8]
491 ? S< 0:00 [ext4-rsv-conver]
496 ? S 0:10 [jbd2/sdc3-8]
497 ? S< 0:00 [ext4-rsv-conver]
643 ? S< 0:00 [kworker/5:1H]
644 ? S< 0:00 [kworker/6:1H]
645 ? S< 0:00 [kworker/4:1H]
647 ? S< 0:03 [kworker/2:1H]
798 ? Ss 0:00 /sbin/rpcbind -w
809 ? Ss 0:00 /sbin/rpc.statd
818 ? S< 0:00 [rpciod]
821 ? S< 0:00 [nfsiod]
828 ? Ss 0:00 /usr/sbin/rpc.idmapd
833 ? Ss 0:00 /usr/sbin/smartd -n
835 ? Ss 0:00 /usr/sbin/sshd -D
836 ? Ss 0:00 /usr/sbin/cron -f
839 ? Ssl 0:00 /usr/sbin/ModemManager
840 ? Ss 0:00 /usr/sbin/atd -f
842 ? Ss 3:07 /usr/bin/freshclam -d --foreground=true
844 ? Ss 0:00 /lib/systemd/systemd-logind
860 ? Ss 0:00 avahi-daemon: running [perdition.local]
868 ? Ss 0:02 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
899 ? Ss 0:03 /usr/sbin/gpm -m /dev/input/mice -t exps2
902 ? S 0:00 avahi-daemon: chroot helper
903 ? Ss 0:12 /usr/sbin/irqbalance --pid=/var/run/irqbalance.pid
911 ? Ssl 0:01 /usr/sbin/automount --pid-file /var/run/autofs.pid
914 ? S< 0:01 [kworker/1:1H]
917 ? Ssl 0:00 /usr/sbin/rsyslogd -n
922 ? Ss 0:01 /usr/sbin/acpid
936 ? S 0:00 /usr/bin/timidity -Os -iAD
938 ? Ss 0:00 /usr/bin/kdm
940 tty7 Ss+ 391:14 /usr/bin/X :0 vt7 -br -nolisten tcp -tst -auth /var/run/xauth/A:0-jIsy9b
941 ? Ssl 0:00 /usr/lib/colord/colord
942 ? Ssl 0:00 /usr/lib/policykit-1/polkitd --no-debug
951 tty1 Ss+ 0:00 /sbin/agetty --noclear tty1 linux
957 ? Ss 0:00 /lib/systemd/systemd --user
965 ? S 0:00 (sd-pam)
987 ? Ssl 0:00 /usr/sbin/console-kit-daemon --no-daemon
990 ? S 0:40 /usr/bin/perl /usr/sbin/x2gocleansessions
1079 ? Ss 0:00 /usr/lib/autossh/autossh -N -D localhost:1080 [email protected]
1080 ? S 0:00 /usr/bin/ssh -L 64701:127.0.0.1:64701 -R 64701:127.0.0.1:64702 -N -D localhost:1080 [email protected]
1193 ? S 0:00 -:0
1199 ? Ss 0:00 /usr/bin/ck-launch-session /usr/bin/dbus-launch --exit-with-session x-session-manager
1230 ? Ss 0:00 /usr/bin/ssh-agent /usr/bin/gpg-agent --daemon --sh --write-env-file=/home/steve/.gnupg/gpg-agent-info-perdition /usr/bin/ck-launch-session /usr/bin/dbus-launch --exit-w
1231 ? Ss 0:02 /usr/bin/gpg-agent --daemon --sh --write-env-file=/home/steve/.gnupg/gpg-agent-info-perdition /usr/bin/ck-launch-session /usr/bin/dbus-launch --exit-with-session x-sessi
1245 ? S 0:00 /bin/sh /usr/bin/x-session-manager
1248 ? S 0:00 /usr/bin/dbus-launch --exit-with-session x-session-manager
1249 ? Ss 2:03 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
1286 ? S 0:00 /usr/lib/kde4/libexec/start_kdeinit +kcminit_startup
1287 ? Ss 0:28 kdeinit4: kdeinit4 Running...
1289 ? S 0:12 kdeinit4: klauncher [kdeinit] --fd=9
1291 ? Sl 0:39 kdeinit4: kded4 [kdeinit]
1323 ? S 0:01 /usr/bin/kglobalaccel
1346 ? Sl 0:01 /usr/bin/kactivitymanagerd
1347 ? Ssl 0:00 /usr/lib/upower/upowerd
1379 ? S 0:00 kwrapper4 ksmserver
1383 ? Ssl 1:34 /usr/lib/udisks2/udisksd --no-debug
1384 ? Sl 0:05 kdeinit4: ksmserver [kdeinit]
1392 ? Sl 0:18 /usr/lib/kde4/libexec/kdeconnectd
1398 ? Sl 67:01 kwin
1447 ? SNl 1:02 /usr/bin/baloo_file
1448 ? Ssl 0:23 /usr/lib/packagekit/packagekitd
1462 ? S< 0:00 [cifsiod]
1465 ? S 4:30 [cifsd]
1520 ? S 0:01 /usr/bin/kuiserver
1523 ? Sl 0:17 /usr/bin/akonadi_control
1525 ? Sl 5:08 akonadiserver
1528 ? Sl 14:44 /usr/sbin/mysqld --defaults-file=/home/steve/.local/share/akonadi/mysql.conf --datadir=/home/steve/.local/share/akonadi/db_data/ --socket=/tmp/akonadi-steve.Xainxe/mysql
1541 ? S< 0:00 [kworker/7:1H]
1563 ? Sl 0:02 /usr/bin/nvidia-settings
1564 ? S 0:00 /usr/bin/konqueror --preload
1568 ? Sl 0:00 /usr/lib/kde4/libexec/polkit-kde-authentication-agent-1
1571 ? S 7:02 /usr/bin/knemo
1573 ? S 0:01 /usr/bin/klipper
1580 ? Sl 0:20 /usr/bin/krunner
1588 ? Sl 0:11 /usr/bin/kmix
1591 ? Sl 0:01 /usr/bin/knotify4
1661 ? Sl 0:04 /usr/bin/akonadi_agent_launcher akonadi_akonotes_resource akonadi_akonotes_resource_0
1662 ? Sl 0:04 /usr/bin/akonadi_agent_launcher akonadi_akonotes_resource akonadi_akonotes_resource_2
1663 ? Sl 0:04 /usr/bin/akonadi_agent_launcher akonadi_akonotes_resource akonadi_akonotes_resource_3
1664 ? S 0:08 /usr/bin/akonadi_archivemail_agent --identifier akonadi_archivemail_agent
1665 ? SN 0:05 /usr/bin/akonadi_baloo_indexer --identifier akonadi_baloo_indexer
1666 ? Sl 0:03 /usr/bin/akonadi_agent_launcher akonadi_contacts_resource akonadi_contacts_resource_0
1667 ? S 0:58 /usr/bin/akonadi_davgroupware_resource --identifier akonadi_davgroupware_resource_26
1668 ? S 0:04 /usr/bin/akonadi_followupreminder_agent --identifier akonadi_followupreminder_agent
1671 ? Sl 1:21 /usr/bin/akonadi_imap_resource --identifier akonadi_imap_resource_4
1672 ? Sl 0:04 /usr/bin/akonadi_agent_launcher akonadi_maildir_resource akonadi_maildir_resource_1
1673 ? S 0:04 /usr/bin/akonadi_maildispatcher_agent --identifier akonadi_maildispatcher_agent
1678 ? S 0:08 /usr/bin/akonadi_mailfilter_agent --identifier akonadi_mailfilter_agent
1681 ? S 0:04 /usr/bin/akonadi_migration_agent --identifier akonadi_migration_agent
1684 ? S 0:06 /usr/bin/akonadi_newmailnotifier_agent --identifier akonadi_newmailnotifier_agent
1686 ? S 0:08 /usr/bin/akonadi_notes_agent --identifier akonadi_notes_agent
1690 ? S 0:04 /usr/bin/akonadi_sendlater_agent --identifier akonadi_sendlater_agent
1723 ? SN 0:00 /bin/cat
1724 ? SN 0:00 /bin/cat
1726 ? SN 0:00 /bin/cat
1728 ? SL 0:02 /usr/bin/kwalletd
1729 ? SN 0:00 /bin/cat
1730 ? SN 0:00 /bin/cat
1796 ? S 0:00 /usr/lib/x86_64-linux-gnu/gconf/gconfd-2
2073 ? Sl 1:26 /usr/bin/kontact
2106 ? S 0:08 /usr/bin/korgac --icon korgac
2775 pts/3 Ss+ 0:00 /bin/bash
7661 ? S 0:01 [kworker/u16:2]
9677 ? Sl 42:29 /usr/bin/iceweasel
10589 ? S 0:00 [kworker/6:4]
10772 pts/2 S+ 0:02 tail -f Player.log
10773 pts/2 S+ 0:00 grep -i --color=auto -C10 exception
11579 ? S 0:00 [kworker/5:2]
11613 ? S 0:02 [kworker/7:0]
11630 ? S 0:00 [kworker/1:0]
12321 ? Ss 0:00 sshd: steve [priv]
12328 ? S 0:00 sshd: steve@pts/4
12329 pts/4 Ss 0:00 -bash
12808 pts/4 S 0:00 su
12826 pts/4 S 0:00 bash
13654 ? Sl 2:26 /usr/bin/dolphin --icon system-file-manager -caption Dolphin /home/steve
15388 ? Sl 1:52 kdeinit4: konsole [kdeinit] --workdir /home/steve/KSP_linux-1002
15391 pts/1 Ss+ 0:00 /bin/bash
16445 ? S 0:00 [kworker/6:1]
17644 ? S 0:00 [kworker/0:1]
18556 ? S 0:00 [kworker/7:1]
18585 ? S 0:01 [kworker/3:0]
19056 ? S 0:00 [kworker/u16:1]
19221 ? S 0:00 [kworker/0:2]
19251 ? Ss 0:00 sshd: steve [priv]
19259 ? S 0:00 sshd: steve@notty
19526 ? S 2:52 /usr/lib/nx/../x2go/bin/x2goagent -extension XFIXES -nolisten tcp -nolisten tcp -dpi 96 -S -auth /home/steve/.Xauthority -shadow :0 -shadowmode 1 -geometry 1920x1080+0+0
20714 ? S 0:00 [kworker/6:0]
22741 ? S 0:00 [kworker/4:2]
24597 ? S 0:00 [kworker/0:0]
24738 ? S 0:00 [kworker/6:2]
25214 ? S 0:02 [kworker/2:0]
25310 ? S 0:00 [kworker/3:1]
25576 ? S 0:00 kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-steve/klauncherMT1289.slave-socket local:/tmp/ksocket-steve/akonadi_davgroupware_resource_26oT1667.slave-socket
25577 ? S 0:00 kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-steve/klauncherMT1289.slave-socket local:/tmp/ksocket-steve/akonadi_davgroupware_resource_26tw1667.slave-socket
25583 ? S 0:00 kdeinit4: kio_http [kdeinit] https local:/tmp/ksocket-steve/klauncherMT1289.slave-socket local:/tmp/ksocket-steve/akonadi_davgroupware_resource_26te1667.slave-socket
26078 ? Ss 0:00 /usr/sbin/cupsd -f
26086 ? S 0:00 /usr/lib/cups/notifier/dbus dbus://
26108 ? S 0:00 [kworker/4:0]
26127 ? S 0:00 [kworker/2:2]
26393 ? S 0:00 [kworker/6:3]
26466 ? S 0:00 sh -c /usr/lib/x2go/x2golistsessions_sql perdition 2>/dev/null
26467 ? R 0:00 /usr/bin/perl /usr/lib/x2go/x2golistsessions_sql perdition
26468 pts/4 R+ 0:00 ps ax
27028 ? S 0:00 [kworker/3:2]
28401 pts/2 Ss 0:00 /bin/bash
31933 ? S 0:05 [kworker/1:1]
32618 ? Sl 0:21 /usr/bin/dolphin --icon system-file-manager -caption Dolphin /home/steve
32660 ? S 0:03 [kworker/5:0]

Mouse polling rate (why?): 125Hz

You want more? I got plenty more.

What else could you possibly want? Considering this runs every other game I have without framedrops or stuttering I'd say it's pretty conclusively NOT my system at fault.

Edited by steve_v
Link to comment
Share on other sites

I have no stutter, at all, none.

The engine thrust sound effect used to break for a fraction of a second, but didn't make the game pause, and even that's gone.

When I play KSP, I run as little else as possible, irc chat and a file browser, maybe a very lightweight music player (I'm talking kilobytes here) and Firefox.

Firefox, indeed every browser I have tried, uses quite a bit of RAM and sometimes way too much cpu, so I use plugins to keep it under control and I don't use adblock (a massive resource hog all on its own), and before you say use Chrome or whatever, Firefox is the least lardy of the lot, it's the only one that will actually release memory when you close a tab.

Even with a 1000 part craft, KSP may be a bit slower, but it doesn't stutter.

And this is only on an AMD A10 with 4gigs ram and crappy Nvidia drivers.

Also, so many other players don't suffer stutter, it's just a small percentage, you can see this in KSP youtube vids as well, some do stutter, most just don't.

If this was affecting everyone it'd be known, but it isn't.

It's a Unity3D engine bug, as Steve_V mentions here, and has been known in Unity for a long time, the Squad devs know about it but can't fix it.

It does not affect all players though, so anything that affects Unity's garbage collection should be avoided, make sure your anti-virus is not scanning KSP, defrag your drive, turn off unneeded background processes, don't run fraps/bandicam, don't use Hamachi and even try allowing KSP through your firewall, as Unity uses urls to find game assets even on your own system and stupidly checks network adapters first.

Hi Sal, I'm a little confused here; in your post from this thread (top quote) you say "If this was affecting everyone it'd be known, but it isn't", but in the second quote (from this thread about the same issue) you say it's a known unity issue. That seems to contradict, but then again I could be missing something here (it is late after all!).

What is the verdict, will the unity upgrade be likely to fix this?

One of the problems with this stutter bug is it can be quite subtle, so some players may not really notice they have it. One of my friends was certain he didn't suffer from it, until I pointed it out to him. It also takes some times to manifest. On fresh games is doesn't happen at all. It gradually creeps in and somethings seem to make it worse (but still I'm not sure what those are, sometimes it's occasional, other times it's really bad). The thing that frustrates me with it is that I'm playing on the same machine that I've always played KSP on (the only difference is increased RAM). In the past I've run KSP without stutters, that only became a problem for me after 0.90.0 came out.

I've turned my mouse polling down to 125, opened access in my firewall to KSP, disabled AV while playing, done a clean install of windows. Sometimes these things seem to help, but it's still there.

And how are you playing with 1000 part craft!?!? I get to about 300 parts and the game becomes a slide show. (running 3GHz i7, 16GB corsair RAM, GTX760, GTX460 (dedicated to physX), on an Asus Rampage III extreme motherboard, OS and KSP are on an SSD). I know this machine is capable of running older versions of KSP with much larger part counts but in 1.0.x I can't go above 300.

Link to comment
Share on other sites

It's a strange issue. I wonder if some people not reporting it simply aren't noticing. I've found it essentially invisible most of the time. A good way to make it show itself is to get into low Mun orbit and hit 5 or 10 x timewarp, then in what should be a completely smooth and uniform motion the stutter is obvious.

If it is the garbage collector then the solution is straightforward in principle, create and destroy fewer objects, but not necessarily easy to code.

Link to comment
Share on other sites

katateochi, it's a known issue but it's known not to affect everyone, not that it's unknown, and I only load 1000 part craft when players say "hey my craft is broke" and I offer to take a look, but even then KSP is slow but not stuttering for me, if I could reproduce this I'd have a chance of fixing it.

If I knew someone lived near me with this issue I could mess with their PC and try to figure it out.

I have a feeling that file access is involved with this somehow, I know KSP is constantly writing to the KSP.log and output_log/player.log, and I'd not be surprised if it's reading a lot as well, and definitely from the cache.

If it is the file access, defragging the drive might show an improvement, as might starting KSP with -nolog

Edit:

On Unity5, I hope so, Unity are putting all their effort into that and hoping everyone migrates over to 5, and now they only have the one version on offer (thanks Epic!) they will concentrate on that instead of splitting their effort between free and paid versions.

Edited by sal_vager
Link to comment
Share on other sites

I have a feeling that file access is involved with this somehow, I know KSP is constantly writing to the KSP.log and output_log/player.log, and I'd not be surprised if it's reading a lot as well, and definitely from the cache.

If it is the file access, defragging the drive might show an improvement, as might starting KSP with -nolog

Nope, been there, tried that. And I'm not defragging, as on ext4 it is not easy, required or remotely productive.

Watching KSPs I/O shows bugger all file access during play anyway. Hell, I can run it off a network share and it makes zero difference after initial loading.

As I previously mentioned, even loading the entire KSP directory into a ramdisk makes for zero improvement. Ergo it's not file access.

Next please.

Edited by steve_v
Link to comment
Share on other sites

katateochi, it's a known issue but it's known not to affect everyone, not that it's unknown, and I only load 1000 part craft when players say "hey my craft is broke" and I offer to take a look, but even then KSP is slow but not stuttering for me, if I could reproduce this I'd have a chance of fixing it.

If I knew someone lived near me with this issue I could mess with their PC and try to figure it out.

I have a feeling that file access is involved with this somehow, I know KSP is constantly writing to the KSP.log and output_log/player.log, and I'd not be surprised if it's reading a lot as well, and definitely from the cache.

If it is the file access, defragging the drive might show an improvement, as might starting KSP with -nolog

Edit:

On Unity5, I hope so, Unity are putting all their effort into that and hoping everyone migrates over to 5, and now they only have the one version on offer (thanks Epic!) they will concentrate on that instead of splitting their effort between free and paid versions.

Thanks Sal, I will try the nolog arg next time. I'm running KSP on a freshly formatted SSD so I don't think defragging will do much. But the nolog might help, even if read/write times are not a factor, it is still a context switch and the bottleneck may be in preparing the data to write, rather than the actual write action. I'll give it a try tomorrow if I get a chance to play and report back.

so...where in England are you (if you don't mind me asking). I'm in Devon. I can't imagine I'm near to you though, I'm not near anything!

Link to comment
Share on other sites

katateochi, it's a known issue but it's known not to affect everyone, not that it's unknown, and I only load 1000 part craft when players say "hey my craft is broke" and I offer to take a look, but even then KSP is slow but not stuttering for me, if I could reproduce this I'd have a chance of fixing it.

If I knew someone lived near me with this issue I could mess with their PC and try to figure it out.

I have a feeling that file access is involved with this somehow, I know KSP is constantly writing to the KSP.log and output_log/player.log, and I'd not be surprised if it's reading a lot as well, and definitely from the cache.

If it is the file access, defragging the drive might show an improvement, as might starting KSP with -nolog

Edit:

On Unity5, I hope so, Unity are putting all their effort into that and hoping everyone migrates over to 5, and now they only have the one version on offer (thanks Epic!) they will concentrate on that instead of splitting their effort between free and paid versions.

I have an SSD too, one of the fastest for read/write and I too experience the stutter. I have said this many times before but I am almost certain its The UI garbage cleanup.

I suspect it will be fixed/reduced when they overhaul the UI. I have a fresh install of windows and KSP too. it starts after being in the VAB for a while building. I have no flights in progress.

Link to comment
Share on other sites

Okay so it's not likely to be file access, has anyone had their task manager open while this happens? It'd help to know if there's a CPU or RAM spike with every pause.

Also sarbian made a memory monitor tool that could help show what's going on.

Also also, does the problem still occur with a new settings file?

The Unity5 overhaul won't happen overnight, so we need to find a way to mitigate this pausing until then.

Link to comment
Share on other sites

Bit of a breakthrough on this last night.

I cut the stutter down by 5-10x (estimate) by frame rate limiting to a multiple of my monitor refresh rate. I used nvidia inspector and custom settings to limit to 36 (1/4), 48 (1/3), and 72 (1/2). I have a 144hz monitor. The driver frame rate limiter isn't precise but got me within +- 1 or 2 for as measured with the kerbo Katz fps tools.

Just to add specifics for those looking to test this:

Windows 7

Fresh KSP install 1.0.2

No command line arguments

Fresh settings.cfg, KSP vsync off, KSP framelimit off, KSP AA off

nvidia driver 352.86 with nvidia inspector for framelimit

Without frame limit I get 250-300+ fps (well in excess of 144hz monitor)

Edited by antilochus
Link to comment
Share on other sites

One of the problems with this stutter bug is it can be quite subtle

It's definetly subtle all right. For me it's barely even noticeable unless I'm paying attention and I've noticed it sometimes in the deltaV readout from MJ or the clock on the top left.

Okay so it's not likely to be file access, has anyone had their task manager open while this happens? It'd help to know if there's a CPU or RAM spike with every pause.

Also sarbian made a memory monitor tool that could help show what's going on.

Also also, does the problem still occur with a new settings file?

The Unity5 overhaul won't happen overnight, so we need to find a way to mitigate this pausing until then.

Yeah actually, I've noticed before that there are dips at regular intervals in GCmonitors graph, maybe this is the garbage cleanup?

At KSC window

screenshot3_zpsrfoqbprm.png

In flight around Duna (ignore the fact that the brake light is on despit it not being a plane, don't know why it was on)

screenshot4_zpsqgnj7vrg.png

During a launch.

screenshot6_zpsi5zbyuoh.png

Link to comment
Share on other sites

Nice result smj. Have you been able to tell if the dips do or don't correspond to the visual stutter?

I didn't check at that particular moment, but I checked again and used camera rotation (I just pressed down on a numpad key) which is where it's a bit less subtle. I can confirm that yes, the pauses correspond to the dips

Link to comment
Share on other sites

I didn't check at that particular moment, but I checked again and used camera rotation (I just pressed down on a numpad key) which is where it's a bit less subtle. I can confirm that yes, the pauses correspond to the dips

Yes, it has already been confirmed by others that this type of stutter corresponds with the garbage collection (the dips in the GCMonitor graph are when these happen, the little red blips at the bottom of the graph indicate the actual collections). The question that still needs answering is why do some system setups suffer a much more obvious stutter than others despite the frequency of the garbage collections being similar. It appears that either the individual garbage collections simply take longer or they interfere with the normal frame rendering more via some other mechanism, making the "pauses" more visible. It may well be dependent on many factors such a video hardware, video drivers, CPU type (drivers often have specific optimisations for different CPUs) etc. and there may also be a perceptual factor (some people may be more tolerant than others).

I have an idea for a little mod to analyse the frame times to determine how long the garbage collections take which may help to narrow down the contributing factors...

Link to comment
Share on other sites

antilochus' find is interesting, can others try limiting their frame rate?, KSP has the option of using the adapter default.

I can try that for !!!SCIENCE!!!

Edit: Apparently my FPS setting cap is at 80 (thought I had set it to 60), but it caps itself to 30 instead, not sure why.

Edit2: I tried setting it to default and to 60, no change. However, there's another way to lower FPS that doesn't involve changing settings.

Edited by smjjames
Link to comment
Share on other sites

I can try that for !!!SCIENCE!!!

Edit: Apparently my FPS setting cap is at 80 (thought I had set it to 60), but it caps itself to 30 instead, not sure why.

Edit2: I tried setting it to default and to 60, no change. However, there's another way to lower FPS that doesn't involve changing settings.

Set it to default, check settings.cfg to ensure it is -1.

Use nvidia inspector (or whatever people use for AMD) to set it to either 30 fps or 60 fps (assuming you have a 60 Hz monitor).

Link to comment
Share on other sites

Set it to default, check settings.cfg to ensure it is -1.

Use nvidia inspector (or whatever people use for AMD) to set it to either 30 fps or 60 fps (assuming you have a 60 Hz monitor).

I have an NVIDIA graphics card myself though, NVIDIA Geforce GTX 765m to be specific.

I'll set it to default and check that after I finish restarting after I crashed from trying to launch an 800+ (used a crapload of fins) part craft.

Edit: What is MAX_VESSELS BUDGET= -1 ? Anyways, I set it to default and yes it shows as -1.

Edited by smjjames
Link to comment
Share on other sites

Try turning vsync on/off as well. With vsync on your framerate will almost always be an exact divisor of your monitor refresh rate, e.g. for 60Hz it will be 60, 30, 20, 15, 12, 10 etc.

Edited by Padishar
Link to comment
Share on other sites

Okay, while my 762 part (I thought I saw that it was 800 plus in VAB?) craft makes it graphically laggy, the FPS counter stayed steady at 25. The dip rate in GCmonitor did speed up a little, but no more than I saw in flight earlier.

Edit: Set the vsync to off and while the FPS in the main menu was 200+, it still went to 25FPS when I launched that 762 part ship. GRAPHICAL FPS is way down due to the ship, yes, but not game FPS.

The only time that I've really ever seen the FPS drop below 25 is when a mod bugs out and spams the output log or something.

Edited by smjjames
Link to comment
Share on other sites

Okay, while my 762 part (I thought I saw that it was 800 plus in VAB?) craft makes it graphically laggy, the FPS counter stayed steady at 25. The dip rate in GCmonitor did speed up a little, but no more than I saw in flight earlier.

Edit: Set the vsync to off and while the FPS in the main menu was 200+, it still went to 25FPS when I launched that 762 part ship. GRAPHICAL FPS is way down due to the ship, yes, but not game FPS.

The only time that I've really ever seen the FPS drop below 25 is when a mod bugs out and spams the output log or something.

I would test it out on a clean install with a low part count build (so I wasn't CPU or GPU capped below max refresh rate) to get a baseline. See my earlier post for a specific description of my configuration. I was seeing huge stutter issues even on a clean install that appeared like the GC ones described here and they mostly went away.

I suspect this is a GC issue that when combined with the trickery of how games actually render frames, we get the stutters, which is why people who have a certain configuration on the framerate can avoid it (or mostly avoid it).

Anyway, I will do more testing tonight on my own build, if anyone has any requests for utilities or outputs I can do that too.

Edit: Just to be very clear, I am testing using the nvidia framerate limiter, not the KSP/Unity limiter, as the KSP one wouldn't accept a fraction of 144Hz even when editing in settings.cfg (the 60/80/100 etc are locked). So I would recommend others use third party limiters to try 30 fps unless there is a workaround.

Edited by antilochus
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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...