Page 1 of 1

[14.21] Failed to Create Display [Not-So-Resolved-But-Kinda]

Posted: Sun Dec 11, 2016 9:31 pm
by Starfoth
Before you post:
1. Yes, I have checked the pinned post, none of those solutions help
2. i5-3210M 2.5 GHz 4 Core; 8 GB RAM; DX12; HD Graphics 4000
3. All drivers up-to-date
4. Removing Mods has not worked
5. Going back to a previous version has not worked
6. Reinstalling has not worked
7. Verifying cache has not worked

"failed to create display" is the only message displayed after instantly crashing

Re: [14.21] Failed to Create Display

Posted: Sun Dec 11, 2016 9:42 pm
by Smarty

Re: [14.21] Failed to Create Display

Posted: Sun Dec 11, 2016 9:42 pm
by daniel34
You forgot to post your Log file.

Re: [14.21] Failed to Create Display

Posted: Sun Dec 11, 2016 9:45 pm
by Starfoth
factorio current

Re: [14.21] Failed to Create Display

Posted: Sun Dec 11, 2016 9:52 pm
by daniel34
Starfoth wrote:

Code: Select all

D3DERR_NOTAVAILABLE[-2005530518]
This is a DirectX error (-2005530518 Device does not support the queried technique), make sure DirectX and your graphics drivers are up to date: https://www.microsoft.com/en-us/downloa ... aspx?id=35

Alternatively you can launch the game using OpenGL by setting the Steam launch options to --force-opengl in the game properties (link).

Re: [14.21] Failed to Create Display

Posted: Sun Dec 11, 2016 9:54 pm
by Starfoth
daniel34 wrote:
Starfoth wrote:

Code: Select all

D3DERR_NOTAVAILABLE[-2005530518]
This is a DirectX error (-2005530518 Device does not support the queried technique), make sure DirectX and your graphics drivers are up to date: https://www.microsoft.com/en-us/downloa ... aspx?id=35

Alternatively you can launch the game using OpenGL by setting the Steam launch options to --force-opengl in the game properties.
I'll try that and get back to you. My Direct X is up to date, I checked beforehand but thank-you very much for the suggestion.
When Steam decides to cooperate, I'll try the force opengl thing.

Thank you for the response, I will get back to you.

Re: [14.21] Failed to Create Display

Posted: Sun Dec 11, 2016 10:05 pm
by Starfoth
How do you set the force opengl in game properties?
Edit; Nvm, set it. Going to try now.

Re: [14.21] Failed to Create Display

Posted: Sun Dec 11, 2016 10:10 pm
by daniel34
Starfoth wrote:How do you set the force opengl in game properties?
Right-click on the game in your Steam library, select Properties.
Press the "Set launch options" button in the General tab and enter --force-opengl.
factorio-properties.png
factorio-properties.png (21.18 KiB) Viewed 7633 times

Re: [14.21] Failed to Create Display [Unresolved]

Posted: Sun Dec 11, 2016 10:15 pm
by Starfoth
It's not 'quite' resolved because running it with opengl is excruciatingly slow. When I try to run my factory (not a megabase, does not have level 3 modules yet), it barely runs whatsoever.

I'm not sure there's a way to resolve it at this point. Has Factorio been optimized for DX12?

Re: [14.21] Failed to Create Display [Unresolved]

Posted: Sun Dec 11, 2016 10:20 pm
by Rseding91
Starfoth wrote:Has Factorio been optimized for DX12?
No, Factorio uses DX9 still :(

Re: [14.21] Failed to Create Display [Unresolved]

Posted: Sun Dec 11, 2016 10:25 pm
by Starfoth
Rseding91 wrote:
Starfoth wrote:Has Factorio been optimized for DX12?
No, Factorio uses DX9 still :(
That could be the issue

My drivers are TOO up-to-date, lol

However, DX9 should still work and not create this failure? Strange. Aw well, I guess I could try to slug through with low UPS until I can figure out how to get it to run with DX. Thanks for your help.

Re: [14.21] Failed to Create Display [Not-So-Resolved-But-Kinda]

Posted: Mon Dec 12, 2016 11:13 am
by posila
Hmm, I tried Factorio on laptop with Core i5-3320M, HD Graphics 4000 with freshly installed Windows 10 and it worked in DirectX without problems.
It is true on new map it dropped to 30 FPS in forest (with default zoom). With OpenGL it ran about the same.
I'll try it later again to see if it runs better if I connect power adapter. The laptop might have been running in some power saving mode.

Anyway, currently I have no idea why Factorio would fail to initialize Direct3D on your computer this way.

Re: [14.21] Failed to Create Display [Not-So-Resolved-But-Kinda]

Posted: Mon Dec 12, 2016 9:37 pm
by xtremeqg
Anyway, currently I have no idea why Factorio would fail to initialize Direct3D on your computer this way.
Resolution mismatch? Some cards are really picky... (expanded flags for sanity). Try forcing windowed mode by editing config file and setting fullscreen=0.

[0]: \\.\DISPLAY1 - Intel(R) HD Graphics 4000 {0x05, [0,0], 1366x768, 32bit, 60Hz}
D3DPRESENT_PARAMETERS: fmt=X8R8G8B8; w=1280,h=720,Hz=0; ads=0;pi=INTERVAL_IMMEDIATE;ms=0;swap=D3DSWAPEFFECT_DISCARD;flags=D3DPRESENTFLAG_LOCKABLE_BACKBUFFER

Re: [14.21] Failed to Create Display [Not-So-Resolved-But-Kinda]

Posted: Tue Dec 13, 2016 5:46 pm
by posila
Based on the log fullscreen was not enabled.

I did more tests on laptop I currently have available and I just could not get good performance out of it. Enabling high performance mode in Intel graphics controle center helped a little bit but not much. I eventually found out the HD 4000 have 32MB of dedicated memory (I know it is actully still RAM in case of intergrated graphics cards, but it still makes difference in performance). On desktop it is usually possible to configure how much RAM should be dedicated to IGP, but I couldn't find this option on the laptop.

Sometime I'll have to test how different sizes of dedicated memory for IGP affect FPS in Factorio on desktop.