Extremely Large Animations, Flip lag

Place to get help with not working mods / modding interface.
Post Reply
toddnollan
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri May 19, 2017 9:55 am
Contact:

Extremely Large Animations, Flip lag

Post 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.
Attachments
OmegaDrill_0.1.0.zip
(92.11 MiB) Downloaded 134 times

User avatar
LethargicChii
Inserter
Inserter
Posts: 40
Joined: Fri Dec 23, 2016 5:19 pm
Contact:

Re: Extremely Large Animations, Flip lag

Post 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.
Last edited by LethargicChii on Fri May 19, 2017 6:34 pm, edited 1 time in total.
My Mods:
Rocket Turret
Discussion Forum: viewtopic.php?f=93&t=47497

Ask me about blender! I don't know a lot, but, I can try and help.

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

Re: Extremely Large Animations, Flip lag

Post 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 ;)

toddnollan
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri May 19, 2017 9:55 am
Contact:

Re: Extremely Large Animations, Flip lag

Post 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

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Extremely Large Animations, Flip lag

Post 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 2181 times
Greetings, steinio.
Image

Transport Belt Repair Man

View unread Posts

Post Reply

Return to “Modding help”