Page 1 of 1

Extremely Large Animations, Flip lag

Posted: Fri May 19, 2017 10:32 am
by toddnollan
In my first foray into modding, I looked to create a Very Large Drill (15x15)
Being the type of person that I am, this was rendered in a very large size (600x600) with 256 frames for each direction it could face. However, on loading the mod (even without placing any of the mod's items), the game hangs for a fraction of a second every few seconds, notably hanging the rest of my computer as well. When looking at the debug screen, "flip" jumps up by four (precisely, consistently) for about a second every time it hangs. This seems to be a graphics problem, as the game simulation continues - items will jump further down the belt when the hang ends, for instance. Factorio's processor usage on a usage monitor spikes during this time, though GPU usage does not.

I would like to know if it is possible to resolve this issue without reducing either the resolution or animation quality of the mod.

Basic specs:
GeForce GTX 750 TI
AMD FX-6300 6-core 3.5 GHz
16gb RAM

Mod file attached, if you want to test yourself.

Re: Extremely Large Animations, Flip lag

Posted: Fri May 19, 2017 6:30 pm
by LethargicChii
I didn't have any problems with it at all.

I have a 1080 TI and settings are High for textures, and All for video memory.
Huge Drill
Thats really big by the way. I kinda like it.

Edit: If you used blender to make that, I would give that inner metal square a texture to help it out. The flat gray kinda kills your overall design.

Re: Extremely Large Animations, Flip lag

Posted: Fri May 19, 2017 6:33 pm
by orzelek
My guess is it will depend if game manages to put whole drill animation into one texture. And you also need to have enough VRAM to fit all textures in to prevent streaming from memory.

And animation for entity this big will be very costly on VRAM.
Going by numbers shown on GPU-Z with and without mod it's about 4GB (or 6GB - getting some strange numbers) of VRAM with this drill. Thats kind of insane ;)

Re: Extremely Large Animations, Flip lag

Posted: Sat May 20, 2017 11:19 am
by toddnollan
I would give that inner metal square a texture to help it out
If I had any amount of competency with texturing, I totally would.
it's about 4GB (or 6GB - getting some strange numbers) of VRAM
Given that I have 2GB vram, that's probably the issue. Thanks.

On another note, I redid the thing with an 8 frame anim instead of the 256 frame anim. Also a very, very different model. Uploaded to mod portal since it works now. Thank you both for the help!

And yes, I know I ought to add detail to the top circle thing. Might be 0.1.1

Re: Extremely Large Animations, Flip lag

Posted: Sat May 20, 2017 11:24 am
by steinio
toddnollan wrote:
I would give that inner metal square a texture to help it out
If I had any amount of competency with texturing, I totally would.
it's about 4GB (or 6GB - getting some strange numbers) of VRAM
Given that I have 2GB vram, that's probably the issue. Thanks.

On another note, I redid the thing with an 8 frame anim instead of the 256 frame anim. Also a very, very different model. Uploaded to mod portal since it works now. Thank you both for the help!

And yes, I know I ought to add detail to the top circle thing. Might be 0.1.1
Hi,

at the mod portal someone is asking if the miner can get two outputs but i have doubts the protoype allows this.

Edit: As you don't have a thread for your mod i'll post here.
Your mod has an error which stops Factorio from loading:
omegadrill.png
omegadrill.png (39.75 KiB) Viewed 2390 times
Greetings, steinio.