More plugin texture size

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

More plugin texture size

Post by Lobby »

Problems with texture space for your plugins?

With version 342 you will get doubled texture size - that means 2048x2048 pixels - unless you're using a language whose characters use too much space (currently Japanese and Chinese)(448).

:66:
Now, the game allocates more texture space dynamically once the primary texture space fills up. More textures have the disadvantage of possible performance impact, but hey, it's better than not being able to use all of the plugins that you like at the same time :lol:

Right now, the pt console command only shows the last allocated plugin texture.
User avatar
Brody Craft
Inhabitant of a Infinity
Reactions:
Posts: 8034
Joined: 24 Jan 2017, 09:15
Location: SE Asia
Plugins: Showcase Store
Version: Beta

Platform

Re: Doubled plugin texture size

Post by Brody Craft »

*Japanese and Chinese Crying*
When you get to be called a Board Index because you are too good.>:3
User avatar
Bearbear76
Inhabitant of a Multiverse
Reactions:
Posts: 5701
Joined: 10 Feb 2017, 12:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Doubled plugin texture size

Post by Bearbear76 »

Lobby wrote: 12 Sep 2017, 10:37 Problems with texture space for your plugins?

With version 341 you will get doubled texture size - that means 2048x2048 pixels - unless you're using a language whose characters use too much space (currently Japanese and Chinese).
So what's the mechanics behind this

Removing unnecessary fonts?
And that's half of the whole texture space :bb
Just my opinion
retired
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Doubled plugin texture size

Post by Lobby »

I preserve 1024x4096 pixels just for rendering all characters in all fonts that might be needed. The space actually needed however can differ dramatically. E.g. for English all the characters fit into a 1024x1024 pixel window. So I can use the left space for something else, for plugins for example :)
User avatar
Josh
Inhabitant of a Galaxy
Reactions:
Posts: 2213
Joined: 11 Mar 2017, 17:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Doubled plugin texture size

Post by Josh »

Cool! More plugins :)
TheoTown player since update 1.1.50

Creator of Aldorria, Covinton Empire, West Country, Sunnydale
User avatar
malsa
Inhabitant of a Multiverse
Reactions:
Posts: 5078
Joined: 10 Feb 2017, 15:40
Location: Malaysia
Plugins: Showcase Store
Version: Beta

Platform

Re: Doubled plugin texture size

Post by malsa »

Brody Craft wrote: 12 Sep 2017, 10:44 *Japanese and Chinese Crying*
*Stare weirdly at East German in 1984*
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Doubled plugin texture size

Post by CommanderABab »

Fireout wrote: 12 Sep 2017, 13:02
Brody Craft wrote: 12 Sep 2017, 10:44 *Japanese and Chinese Crying*
*Stare weirdly at East German in 1984*

stare here >>Image
my avatar:
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Doubled plugin texture size

Post by Lobby »

world_usage.png
An illustration about how it works :teach
You do not have the required permissions to view the files attached to this post.
User avatar
Brody Craft
Inhabitant of a Infinity
Reactions:
Posts: 8034
Joined: 24 Jan 2017, 09:15
Location: SE Asia
Plugins: Showcase Store
Version: Beta

Platform

Re: Doubled plugin texture size

Post by Brody Craft »

Why does it only have ghat much space?
When you get to be called a Board Index because you are too good.>:3
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Doubled plugin texture size

Post by Lobby »

Because of the hardware in your phone. This texture is hold in the fast memory of your GPU. To make it bigger isn't supported by many GPUs and to use multiple textures is slower than accessing only one texture (and may not fit into graphic memory).

For some reason phone manufacturers normally don't promote the VRAM of their phones.
User avatar
Brody Craft
Inhabitant of a Infinity
Reactions:
Posts: 8034
Joined: 24 Jan 2017, 09:15
Location: SE Asia
Plugins: Showcase Store
Version: Beta

Platform

Re: Doubled plugin texture size

Post by Brody Craft »

They are money hunters i guess :lol:
When you get to be called a Board Index because you are too good.>:3
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Doubled plugin texture size

Post by Lobby »

I rearranged some things. Now the statement holds true for Chinese and Japanese, too.
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Doubled plugin texture size

Post by Lobby »

Things have changed a bit :66:
User avatar
byxxiaonanhui
Inhabitant of a Megacity
Reactions:
Posts: 225
Joined: 04 May 2020, 07:19
Location: Shijingshan Beijing China
Plugins: Showcase Store

Plugin Creator

Platform

Re: Doubled plugin texture size

Post by byxxiaonanhui »

Lobby wrote: 17 Mar 2018, 16:35 I rearranged some things. Now the statement holds true for Chinese and Japanese, too.
As a Chinese, I'm so happy!
My other username is "thermometer screen".
Yes, the thermometer screen that can help to measure weather.
Previous topicNext topic