Problem with 4k Resolution and DyTech(or other mods maybe)

This subforum contains all the issues which we already resolved.
User avatar
Serverfrog
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu May 28, 2015 12:22 pm
Contact:

Problem with 4k Resolution and DyTech(or other mods maybe)

Post by Serverfrog »

As in Issue https://github.com/Dysoch/DyTech/issues/308

When DyTech Machine 1.0.3 and DyTech-Core 1.1.3 are installed, the Game can't be resize to 4k (3840x2160 pixels). When this is done, the Game Crash with the error
Unable to create sprite (3836X2066) probably not enough of video memory.
PC Specs, to confirm that the PC Specs are not the real problem here.
  • Windows 8.1 Version 6.3.9600 Build 9600
  • Inter Core i7-37770K@ 3,50 GHz
  • 16 GB RAM
  • nVidia GeForce GTX 970
  • Displays:
  • Main Display http://www.iiyama.com/gb_en/products/pr ... 88uhsu-b1/ 28" Native Resolution: 3840 x 2160
  • Second Display Acer B273H 27" Native Resolution: 1920 x 1080

Code: Select all

   0.001 2015-04-30 14:20:08; Factorio 0.11.22 (Build 14011, win32)
   0.001 Operating system: Windows 8 
   0.002 Read data path: C:/Program Files (x86)/Factorio/data
   0.002 Write data path: C:/Users/m-p-h_000/AppData/Roaming/Factorio
   0.002 Binaries path: C:/Program Files (x86)/Factorio/bin
   0.091 Initialised video: NVIDIA GeForce GTX 970
   0.143 Graphics options: [FullScreen: false] [VSync: true] [UIScale: 150%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all]
   0.196 Loading mod core 0.0.0 (data.lua)
   0.209 Loading mod base 0.11.22 (data.lua)
   0.420 Loading mod CORE-DyTech-Core 1.1.3 (data.lua)
   0.651 Loading mod MAIN-DyTech-Machine 1.0.3 (data.lua)
   1.031 Loading mod base 0.11.22 (data-updates.lua)
   2.155 Initial atlas bitmap size is 16384
   2.158 Couldn't create atlas bitmap (size 16384x10185), will try again
   2.169 Created atlas bitmap 8192x8185
   2.540 Created atlas bitmap 8192x8185
   2.684 Created atlas bitmap 8192x4181
  12.172 Info Updater.cpp:717: Downloading https://www.factorio.com/updater/get-available-versions?username=Serverfrog&token=<private>&apiVersion=2
  13.073 0 packages available to download (experimental updates disabled).
  13.109 Factorio initialised
  21.663 Loading map 
  21.664 Info Scenario.cpp:158: Map version 0.11.22-0
  21.711 Info LocaleProvider.cpp:114: Using locale files from the pre 0.11.0 structure (__CORE-DyTech-Core__/script-locale/en.cfg)
  24.917 Error Util.cpp:43: Unable to create sprite (3836X2066) probably not enough of video memory.
  27.212 Goodbye
Last edited by Serverfrog on Tue Jun 09, 2015 8:42 pm, edited 1 time in total.

orzelek
Smart Inserter
Smart Inserter
Posts: 3921
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by orzelek »

Amount of VRAM is not present in the log as far as I can see - I'd recommend lowering graphical details and retrying.
I think that DyTech Machine mod has quite a lot of graphical assets.

On the other hand standard memory for this GPU should be 4GB... that would mean something strange is going on. Are you running on latest drivers?
One message from log thats a bit strange is the failed attempt to make 16k texture - it should work on that class of GPU I think.

User avatar
Serverfrog
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu May 28, 2015 12:22 pm
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by Serverfrog »

I'm running always on the latest driver to have not this kinds of problems ;)

And i Think to that this is strange because that means that the things the Game put in the VRAM is 4 times of the Game itself, if not more!

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by bobingabout »

The way graphics work, that isn't hard to believe. Do graphics cards have a hardware PNG decoding system, to render them stright on your screen in a single, simple, fast process? I highly doubt it, therefore all image files would need to be decompressed into Bitmap images before they can be used (which would inflate their filesize to 4 times, or more)

on top of that, the game will draw the screen in layers. you'll need 3840x2160x4 bytes of memory just for the screen overlay, on top of that, all the graphics for the game. if you have less than a half gig in your graphics card, the game would find it hard to run, with a 4K screen, I'd recomend a 1GB graphics card, MINIMUM, probably more like a 2GB card. Larger resolution screens are really memory hungry.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

User avatar
Serverfrog
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu May 28, 2015 12:22 pm
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by Serverfrog »

I Added the PC Specs and the Console Log to clarify some things

orzelek
Smart Inserter
Smart Inserter
Posts: 3921
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by orzelek »

Can you download GPU-Z and check amount of memory for GPU?
With 4GB it should work.. with 2GB might be a problem at that kind of resolution (it's about 4 times full hd).
You can try to change graphics quality to lower before resizing game to full screen.

User avatar
Serverfrog
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu May 28, 2015 12:22 pm
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by Serverfrog »

You never heard about the nVidea fail with the GTX 970, haven't you? :?

So in short:
The GTX970 has 4GB VRAM where only 3,5GB are fast, and the other 0,5GB are slow.

Long:
NVIDIA GPU Specification Comparison
Source http://www.anandtech.com/show/8935/gefo ... allocation

Code: Select all

					GTX 980 						GTX 970 (Original)					GTX 970 (Corrected)
CUDA Cores			2048 		 					1664	 	 	 					1664
Texture Units			128 	 						104 	 	 						104
ROPs					64	 	 					64	 	 	 					56
Core Clock				1126MHz 	 					1050MHz 	 						1050MHz
Boost Clock			1216MHz	 					1178MHz	 	 					1178MHz
Memory Clock			7GHz GDDR5 					7GHz GDDR5 						7GHz GDDR5
Memory Bus Width 		256-bit 					 	256-bit 	 						256-bit
VRAM				4GB 	 					 	4GB 	 	 						4GB
L2 Cache				2MB	 					 	2MB	 	 	 					1.75MB
FP64					1/32 FP32	 					1/32 FP32	 	 					1/32 FP32
TDP					165W					 	145W 	 						145W
GPU					GM204					 	GM204	 	 					GM204
Transistor Count		5.2B 					 		5.2B 	 	 						5.2B
Manufacturing Process	TSMC 28nm					TSMC 28nm	 					TSMC 28nm
Launch Date 			09/18/14				 		09/18/14	 	 					09/18/14
Launch Price			$549					 	 	$329 	 	 						$329
And GPU-Z

Image

orzelek
Smart Inserter
Smart Inserter
Posts: 3921
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by orzelek »

There is a non zero chance you have .. to much of VRAM? ;)
More pepole with 4k display would be useful to test if game works for them without problems.

This bug seems to fit into the 1/0 magic category.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3713
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by DaveMcW »

Does it work in 3840x2160 if you disable Dytech?

Does Dytech work if you use lower resolution?

User avatar
Serverfrog
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu May 28, 2015 12:22 pm
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by Serverfrog »

DaveMcW wrote:Does it work in 3840x2160 if you disable Dytech?

Does Dytech work if you use lower resolution?
Yes and Yes.

I Run it in Window Mode and if i don't resize the Window to make it bigger, it won't crash.

"Vanilla" Factorio runs perfectly fine with highest Framerates on 4k.

User avatar
Serverfrog
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu May 28, 2015 12:22 pm
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe) [kovarex]

Post by Serverfrog »

orzelek wrote:There is a non zero chance you have .. to much of VRAM? ;)
More pepole with 4k display would be useful to test if game works for them without problems.

This bug seems to fit into the 1/0 magic category.
Someone could also test this with http://en.wikipedia.org/wiki/Supersampling :D

User avatar
Serverfrog
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu May 28, 2015 12:22 pm
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by Serverfrog »

as im seeing it know, it was moved to 1/0 magic ?

That means it will never been fixed because no one try it with supersampling an 3840x2160 resolution?

I mean: it could be a wrong error message or a wrong image handling.

But ok, nevermind. I think i can't play any mods now.

kovarex
Factorio Staff
Factorio Staff
Posts: 8184
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by kovarex »

Well, there is nothing I can do about it as long as I can't reproduce it.

And even if I could reproduce it I'm not really sure I would be able to find out what is causing the problem, when the graphics card just refuses to create the bitmap.

User avatar
Serverfrog
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu May 28, 2015 12:22 pm
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by Serverfrog »

so the error won't occure when super-sampling in 4k resolution is used?
Then i understand that, but currently couldn'T any GTX 970 User play Factorio with mods, if im right ;)
But ok, i will wait till something happend, till then: no mods :(

kovarex
Factorio Staff
Factorio Staff
Posts: 8184
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by kovarex »

It depends how many mods you use and how much memory requirements do they have. It could be, that you simply ran out of the video memory.

If you upload the mods folder I can try to reproduce it.

Btw, we found out, that there is an error in the graphics library we use. It stores the copy of the bitmaps in RAM once instead of twice, so the RAM requirements will be much less after this update. It is not probably the cause of the problem, but it could.

User avatar
Serverfrog
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu May 28, 2015 12:22 pm
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by Serverfrog »

Here are the Mods, the Config and the Error Log.

Mods https://mega.co.nz/#!BZdHRAZS!NS1A2Iwt6 ... foz-R6hjas
Config: http://pastebin.com/AHM93a39
Error Log: http://pastebin.com/qzJggBD6

posila
Factorio Staff
Factorio Staff
Posts: 5304
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Problem with 4k Resolution and DyTech(or other mods maybe)

Post by posila »

kovarex wrote:Btw, we found out, that there is an error in the graphics library we use. It stores the copy of the bitmaps in RAM once instead of twice, so the RAM requirements will be much less after this update. It is not probably the cause of the problem, but it could.
This will actually probably solve the problem. I just noticed Serverfrog is running 32bit Windows 8 (or 32bit build of Factorio), so he is probably actually running out of RAM, since he has available only 2GB per process.

Serverfrog: if you have 64-bit Windows, download 64-bit build of Factorio.

Post Reply

Return to “Resolved Problems and Bugs”