What does Sprite.priority do? https://wiki.factorio.com/Types/Sprite#priority
The description is rather unclear.
What does Sprite.priority do?
Re: What does Sprite.priority do?
Yeah description should be: Sets the priority of the sprite.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: What does Sprite.priority do?
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.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: What does Sprite.priority do?
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.
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.