Page MenuHomeSchine - Phabricator

Starmade | 100% CPU usage on start-up
Confirmed task for development, NormalPublic

Description

Starting a SP client (which is booting up the server + client) gives me a long 100% CPU spike, roughly 20-30 seconds or so. Any input device (except for my mouse), sound, ... all freezes up for a short period which is annoying and it's testing my patience for more than 20 months now.

The same goes when I connect to a MP server but it's just less noticeable, usually it's 5-10 seconds.

My processor isn't great but it can handle pretty much any other game it throws at me. Surely starmade should not be an exception? I believe many users experience this.

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
Single and Multi
Reproducible
Yes
Last tested (version)
0.19437 (Dev)
Category
Engine
First occurrence (version)
0.15
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
uncertain
Detected video (Graphicsinfo.txt)

Driver Version: 9.18.13.5012
Vendor: NVIDIA Corporation
OpenGL Version: 4.5.0 NVIDIA 350.12
Renderer: GeForce GTX 970/PCIe/SSE2
GLSL Ver: 4.50 NVIDIA

SMC-Report

Windows version: Windows 7 64-bit ....PASS
Processor: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz (4 CPUs), ~3.8GHz
Memory: 16384MB RAM
Graphics Card name: NVIDIA GeForce GTX 970 ....PASS
Java version: 64-bit Java 8 ....PASS

Serverconfig (server.cfg)
<replace this line with the file content>
Clientconfig (settings.cfg)
C_USE_NEW_PLAYER_MODEL_ = true
CONTROL_HELP = false
C_MOUSE_BUTTOM_SWITCH = false
G_RESOLUTION = 1920 x 1080
G_FULLSCREEN = true
G_VSYNCH = false
G_FOV = 85.0
G_MAX_SEGEMENTSDRAWN = 20000
G_DRAW_SURROUNDING_GALAXIES_IN_MAP = false
HIT_INDICATION_NUMBERS_LIFETIME = 0.4
D_LIFETIME_NORM = 120
G_WINDOWED_BORDERLESS = false
S_SOUND_SYSTEM_ENABLED = true
S_SOUND_ENABLED = true
S_SOUND_VOLUME_GLOBAL = 4
N_TRANSMIT_RAW_DEBUG_POSITIONS = false
C_SELECTED_JOYSTICK = 0
ICON_BAKERY_BLOCKSTYLE_ROTATE_DEG = -90.0
MOUSE_WHEEL_SENSIBILITY = 7.0E-4
BUILD_MODE_SHIFT_SPEED = 25.0
ORBITAL_CAM_SPEED = 0.5
G_DAMAGE_DISPLAY = 600
G_STAR_COUNT = 4096
G_VBO_BULKMODE_SIZE = 4
G_DRAW_FOG = false
G_DRAW_BEAMS = true
G_DRAW_EXHAUST_PLUMS = true
D_INFO_CONTROLMANAGER = false
D_INFO_SHADER = true
T_ENABLE_TEXTURE_BAKER = false
D_INFO_DRAW_TIMES = false
D_INFO_DRAW_SPACE_PARTICLE = false
G_SPACE_PARTICLE = false
G_DRAW_MOUSE_COLLISION = false
G_ATMOSPHERE_SHADER = normal
G_SHADOW_QUALITY = ULTRA
G_DRAW_SHIELDS = true
G_DRAW_WATER = true
G_DRAW_BACKGOUND = true
G_WATER_USER_MIPMAPS = false
E_NAVIGATION_FILTER = 1021
G_DRAW_ENTITIES = true
G_FRUSTUM_CULLTING = true
G_DRAW_EFFECTS = true
G_SHADER_RELOAD = false
G_FRAMRATE_FIXED = -1
G_SHADERS_ACTIVE = true
G_DEBUG_DRAW_GRID = false
G_DEBUG_DRAW_LINES = true
F_FRAME_BUFFER_USE = false
T_TERRAIN_DRAW = true
T_TERRAIN_WIREFRAME_DRAW = false
G_CULLING_ACTIVE = true
G_TEXTURE_ARRAYS = true
G_AUTO_NORMALIZATION = true
G_DRAW_BY_SIDES = true
G_WIREFRAMED = false
G_NORMAL_MAPPING = true
G_TEXTURE_COMPRESSION_BLOCKS = false
G_TEXTURE_ARRAY_COMPRESSION = true
G_TEXTURE_ARRAY_MIPMAP = true
G_TEXTURE_MIPMAP = true
G_SHADOWS = false
G_SHADOWS_VSM = false
S_PAUSED = false
S_SETTINGS_SHOW = false
MINIMAP_MODE = LARGE
SECTOR_INDICATION_MODE = INDICATION_ONLY
S_KEY_ALLOW_DUPLICATES = true
G_PROD_BG = true
G_PROD_BG_QUALITY = 4096
G_TEXTURE_PACK = Default
GIF_WIDTH = 800
GIF_HEIGHT = 800
GIF_FPS = 24
GIF_GUI = true
G_DEBRIS_THRESHOLD_MS = 4
G_TEXTURE_PACK_RESOLUTION = 256
S_INITIAL_SETTING = Single Player
S_GAME_MODE = Sandbox
G_BONE_ANIMATION = true
P_NT_DEBUG_ACTIVE = false
P_PHYSICS_DEBUG_ACTIVE_OCCLUSION = false
P_PHYSICS_DEBUG_ACTIVE = false
P_PHYSICS_DEBUG_MODE = 0
G_DEUBG_LINE_DRAWING_ACTIVATED = false
G_WINDOW_START_POSITION = center
G_DRAW_GUI_ACTIVE = true
G_DRAW_NO_OVERLAYS = false
G_PARTICLE_SORTING = true
P_PHYSICS_ACTIVATED = true
G_SMOKE_QUALITY = false
G_DRAW_STARS = true
G_DRAW_PASTE_PREVIEW = true
G_USE_SPRITE_VBO = true
S_TUTORIAL = false
G_AUTOSELECT_CONTROLLERS = true
S_INFO_DRAW = SOME_INFO
G_VBO_FLAG = STATIC
N_LAG_COMPENSATION = true
N_IGNORE_SAVED_UPLINK_CREDENTIALS_IN_SINGLEPLAYER = true
N_SERVER_TIME_UPDATE_FREQUENCE = 2000
M_TEXTURE_PACK_CONFIG_TOOL = ./data/textures/block/Default/64/
G_MULTI_SAMPLE = 0
G_MIPMAP_LEVELS = 3
M_MOUSE_SENSITIVITY = 0.5
G_HIT_INDICATION_SIZE = 1.0
F_BLOOM = false
F_BLOOM_INTENSITY = 0.4
S_MOUSE_LOCK = true
G_DRAW_ADV_BUILDMODE_BLOCK_PREVIEW = true
G_DRAW_ALL_CONNECTIONS = false
G_SHOW_PURE_NUMBERS_FOR_SHIELD_AND_POWER = false
S_FLIP_HOTBAR_MOUSEWHEEL_WITHOUT_CTRL = false
S_ZOOM_MOUSEWHEEL = SLOTS
S_MOUSE_SHIP_INVERT = false
S_MOUSE_ALL_INVERT = false
S_USE_REGION_SIGNATURE_TEST = false
G_PREVIEW_TO_BUILD_BLOCK_TEST = false
S_EXIT_ON_ESC = false
G_USE_HIGH_QUALITY_ACKGROUND = true
G_DRAW_POPUPS = true
G_USE_VBO_MAP = false
G_DRAW_JUMP_OVERLAY = true
G_MAG_FILTER_LINEAR_BLOCKS = false
G_MAG_FILTER_LINEAR_GUI = false
G_MAX_BEAMS = 1024
SEGMENT_REQUEST_BATCH = 32
CLIENT_BUFFER_SIZE = 65536
ICON_BAKERY_SINGLE_RESOLUTION = 150
G_RAYTRACE_COUNT = 128
ICON_BAKERY_SINGLE_ICONS = false
G_MUST_CONFIRM_DETACHEMENT_AT_SPEED = -1.0
G_USE_SHADER4 = true
O_OCULUS_RENDERING = false
G_USE_VERTEX_LIGHTING_ONLY = false
CLIENT_TRAFFIC_CLASS = true
G_DRAW_SELECTED_BLOCK_WOBBLE = true
G_USE_TWO_COMPENENT_SHADER = false
A_FORCE_AUTHENTICATION_METHOD = -1
MIN_FFA = 2
B_UNDO_REDO_MAX = 300
N_ARTIFICIAL_DELAY = 0
SEGMENT_PIECE_QUEUE_SINGLEPLAYER = 32767
G_MAX_MISSILE_TRAILS = 1024
G_USE_OCCLUSION_CULLING = false
C_AUTOASSIGN_WEAPON_SLOTS = true
G_DRAW_NT_STATS_OVERLAY = false
CLIENT_CUSTOM_TEXTURE_PATH = ./customBlockTextures
SECRET = none
USE_OPEN_AL_SOUND = false
LIMIT_FPS_UNFOCUS = true
GUI_USE_DISPLAY_LISTS = false
USE_GL_MULTI_DRAWARRAYS = true
USE_GL_MULTI_DRAWARRAYS_INITIAL_SET = true
CHAT_CLOSE_ON_ENTER = true
A_FORCE_LOCAL_SAVE_ENABLED_IN_SINGLE_PLAYER = false
G_SHIP_INFO_ZOOM = 3
G_SINGLEPLAYER_CREATIVE_MODE = false
G_DRAW_LAG_OBJECTS_IN_HUD = false
G_SHOW_SYMMETRY_PLANES = true
Java Version (64bit)

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

Related Objects

Event Timeline

lancake updated the task description. (Show Details)Sep 17 2015, 11:26 AM
lancake changed Category from none/unspecified to Engine.
lancake changed Affected Gamemode(s) from none/unspecified to Single and Multi.
lancake set First occurrence (version) to 0.15.
lancake set Last tested (version) to 0.19436 (Dev).
lancake edited Detected video (Graphicsinfo.txt). (Show Details)
lancake edited SMC-Report. (Show Details)
lancake edited Serverconfig (server.cfg). (Show Details)
lancake edited Clientconfig (settings.cfg). (Show Details)
lancake edited Java Version (64bit). (Show Details)
lancake added a subscriber: lancake.
lancake created this task.
lancake raised the priority of this task from to High.
Restricted Application added a project: Issue Navigation. · View Herald TranscriptSep 17 2015, 11:26 AM
Restricted Application added a subscriber: AndyP. · View Herald Transcript
AndyP shifted this object from the S1 Public space to the S3 Starmade space.
AndyP changed the visibility from "Custom Policy" to "Public (No Login Required)".
AndyP changed the edit policy from "Task Author" to "Starmade (Project)".
AndyP set Task Type to Bug.
AndyP set Reproducible to uncertain.
AndyP set OS-Specific to No.
AndyP set Hardware-Specific to No.
AndyP set Video Card Vendor to uncertain.
AndyP claimed this task.
AndyP removed AndyP as the assignee of this task.

-Validated-

lancake updated the task description. (Show Details)Sep 18 2015, 11:23 AM
Zackey_TNT claimed this task.

Claiming. Beginning tests

Zackey_TNT moved this task from Open / Validated to Confirmed on the Issue Navigation board.EditedSep 18 2015, 12:55 PM
Zackey_TNT changed the task status from Open to In Queue (Game).

-Confirmed-

"My processor isn't great but it can handle pretty much any other game it throws at me. Surely starmade should not be an exception? I believe many users experience this"

Maxing out a CPU when loading and transferring files to load assets isn't an unnatural thing. More so for a game like starmade.

Bug report confirmed anyhows.

As seen in this image here


The spike you see is the game starting up.

The game will, if you leftclick alot, lock up when its starting up

Due to the 100% maxing of my CPU it also locks up and briefly pauses other apps such as chrome interrupting my peaceful music.

Puting a lower priority for "javaw.exe" then other apps has always been my workaround and simply adding a limit to how much CPU the game can take (I.E 95%) on startup would likely fix this and the issue with the game locking up the entire OS under a huge crash.

Restricted Application edited projects, added Game Development, Starmade; removed Issue Navigation. · View Herald TranscriptSep 18 2015, 12:56 PM
Zackey_TNT changed Reproducible from uncertain to Yes.Sep 18 2015, 12:58 PM
Zackey_TNT changed Last tested (version) from 0.19436 (Dev) to 0.19437 (Dev).

Well this might be related to what i have: http://phab.starma.de/T1258.

Just to give more detail on it: Regardless of whats around you in-game(Empty space or station or shop etc), What your settings are(Low resolution, Low render distance, Lower res textures, Whatever) it maintains 100% CPU Usage. Even if you leave it alone for up to 60+ Minutes(Tested on MP/SP) it will still lag and maintain 100% CPU Usage. I even created up to FOUR new universes in single player to confirm its not the universe or client settings thats at fault here. And tested on two servers, Lazygamers and went to empty space & Islandgamers PvE at my station in empty space. Still 100% CPU Usage.

100% CPU Usage begins at the moment you click Ok.

This however only started happening since 0.19624, I can downgrade and play 110% a-okay but 0.19624 is broken for me.

Limiting fps fixed this somewhat for me. It was jumping up to 180-200, but forcing 60 with vsync kept the cycles lower than before.

Limiting fps fixed this somewhat for me. It was jumping up to 180-200, but forcing 60 with vsync kept the cycles lower than before.

Tried modifying some of the settings, No good. Still does it.

also if anyone is interested in trying my settings, there all here: http://phab.starma.de/T1258

Just to give more insight to what i see when loading in. It seems like the game "Chunks", Similar to minecraft but smaller are taking using tons of cpu usage. Like when my camera flies around and im standing next to the shop in a new universe, you just see small portions of the shop render in over-time while the game is lagging like hell.

How is this not fixed yet? Its been 7~ Months since it was opened and it literally makes the game unplayable.

But yet you guys are out fixing "Scroll bar not lining up with mouse properly". Like seriously. Your fixing a scroll bar while i and others quite literally cannot play starmade due to FPS being less than 5 95% of the time.

lancake mentioned this in Unknown Object (Maniphest Task).Apr 26 2016, 10:13 AM
AndyP changed the task status from In Queue (Game) to In Queue.Mar 10 2017, 5:13 PM
Restricted Application added a project: Engine. · View Herald TranscriptMar 10 2017, 5:13 PM
schema added a subscriber: schema.EditedMar 21 2017, 5:39 AM
schema changed the task status from In Queue to Resolved.

fixed longer ago. Only remaining issue is when spawning into a high load sector (physics wise)

Restricted Application edited projects, added Quality Assurance; removed Game Development. · View Herald TranscriptMar 21 2017, 5:39 AM
lancake changed the task status from Resolved to In Queue.Mar 21 2017, 11:57 PM

-QA Testing-

May have been improved in the past, but I'm still able to get 100% cpu spikes while booting up my SP, in a sector with a very low amount of entities/block total.
Checked it with visualvm, anything specific you need to help on this? I assume a few CPU snapshots will help?

Restricted Application edited projects, added Game Development; removed Quality Assurance. · View Herald TranscriptMar 21 2017, 11:57 PM
AndyP moved this task from Backlog / Unclassed to General on the Engine board.Mar 24 2017, 8:22 PM
AndyP edited projects, added Engine (General); removed Engine.
lancake lowered the priority of this task from High to Normal.Jul 4 2017, 1:56 PM