-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
New countries for speed limit designs #1260
New countries for speed limit designs #1260
Conversation
These look great! I think the only other notable one would be Japan which has blue text on the speed limit signs. |
The icons are embedded in the .dll file? If so, they're all still getting loaded in to RAM along with the .dll? |
Yes I did not change the way textures are delivered into the resulting DLL, they are embedded but as compressed PNG, that's about 20kb per file. They are loaded on demand though. |
Plus something tells me Windows loads DLL files using mmap. Should doublecheck if actual real memory is used. |
I would be more concern if we instantiate textures -> they will eat VRAM, RAM is not really a problem
Textures created from those images are worse, since they eat VRAM which you can't really extend without huge performance drop. I think we should compare |
The new speed limits UI only has one set of textures for speed signs and overwrites those textures should user choose different speed sign icon theme (hence lag when switching between themes). At least that's what the code says, I've not tested to see if Unity is doing some weirdness under the hood. |
EDIT: Apparently SACU no longer exists https://commons.wikimedia.org/wiki/User:Fry1989/Gallery/Road_Signs/SACU
https://commons.wikimedia.org/wiki/Category:SVG_road_signs_in_the_Southern_African_Customs_Union
|
South African signs look very much like a mix of German signs and orange Swedish-Finnish style backgrounds. Also the country is not represented in top 15 Steam users, so I assumed also not in top 15 C:S users |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All issues fixed now:
|
Not for this PR, but would be cool if changing icon theme updated the button icons on tmpe toolbar. (Priority tool shows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from in-game testing 馃憤
0abfa8e
to
34ccd71
Compare
Works great, but...
|
For memory leak my suggestion is to create one or more |
Theme name is stored in the savegame. When config option contains theme name that is not known, it will reset to default Kmph theme (Kmph_Germany) or to default MPH theme (MPH_UK). |
It can be done in separate PR, no problem. I'll approve this one, since it works pretty well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
馃憤 memory leak issues can be fixed in the next PR
Fixes #1251
I have checked Steam popularity per country, skipped countries which are very similar to German and existing British road signs, and figured out we can add 5 new country themes:
Sweden 馃嚫馃嚜 (because i live here alright, and because Paradox Interactive and community managers for C:S operate from here it might please them too 馃榾 )
Brazil 馃嚙馃嚪
France 馃嚝馃嚪
Indonesia 馃嚠馃嚛
South Korea 馃嚢馃嚪 (similar to German but more square font)
Japan
New priority and parking signs for existing themes:
Canada
Germany
UK
USA