Page 1 of 1
What does Sprite.priority do?
Posted: Tue Jun 18, 2019 1:42 am
by DaveMcW
What does Sprite.priority do?
https://wiki.factorio.com/Types/Sprite#priority
The description is rather unclear.
Re: What does Sprite.priority do?
Posted: Tue Jun 18, 2019 2:28 pm
by steinio
Yeah description should be: Sets the priority of the sprite.
Re: What does Sprite.priority do?
Posted: Tue Jun 18, 2019 2:51 pm
by eradicator
As far as i know it sets the caching priority of a sprite. I.e. when you set a sprite to low-priority and run out of VRAM it'll be amongst the first that gets moved out of VRAM to make room for higher priority sprites. Which is for example why everything gui related is extra-high to keep the gui responsive.
Re: What does Sprite.priority do?
Posted: Tue Jun 18, 2019 9:56 pm
by posila
It's too late for me, I don't want to write it up, but I still wanted to respond ... eradicator is close.
It is more explained in the beginning of
https://www.factorio.com/blog/post/fff-264
In the not so distant future, "Video memory usage" should be replaced by "Video memory budget" and sprite priority will determine probability of a sprite being permanently resident in a sprite atlas in VRAM and rest, that's over the buget, will be streamed.