This forum is going to be locked at the end of this year and eventually going offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive"
https://discord.gg/nECKnbT7gk
Make sure to read
the rules.
Give us your input on how we may improve the game in future versions.
-
Nets p2
- Fighter

- Posts: 41
- Joined: Sat Mar 19, 2016 9:15 pm
- Title: Map Creator
- SFD Account: Nets
- Started SFD: since the first versions
- Location: Brazil
- Gender:
- Age: 27
Post
by Nets p2 » Mon Jun 10, 2019 9:59 pm
I am using the translator to express myself better, but this map can help improve the performance of your server and your fps by up to 40%, Police Station on a normal computer makes 60 fps, on this custom map it does 145 fps .
Maybe it's a simple solution to the problem.
POLICE STATION '|' MAKE 145 FPS IN NORMAL PC
https://i.imgur.com/2RNukv6.png
LINK FOR DOWNLOAD:
https://www.mediafire.com/file/8ffthvja ... .sfdm/file
POLICE STATION OFICCIAL - ORIGINAL: 60 FPS
https://i.imgur.com/OqNkoVr.png
Make a test, please.
| ! | Message from: KliPeH |
Changed topic title to "Low-detail Police Station".
Previously: "HOW TO IMPROVE YOUR SERVER AND FPS IN 40%". |
Last edited by
Nets p2 on Tue Jun 11, 2019 4:47 pm, edited 1 time in total.
2 x
-
KliPeH
- Moderator

- Posts: 922
- Joined: Sat Mar 19, 2016 3:03 pm
- Title: [happy moth noises]
- SFD Account: KliPeH
- Started SFD: Pre-Alpha 1.4.2
- Gender:
-
Contact:
Post
by KliPeH » Tue Jun 11, 2019 9:03 am
I've approved the entry on SFDMaps.
I've also renamed the topic to properly reflect on what this thread is; it's not a miraculous way to "improve server FPS", so please do not
advertise it as such. This is an official map optimized and stripped down to the bare essentials.
That said, I'd love to see a pack of these available to the low-spec players out there.
2 x
-
Sree
- Superfighter

- Posts: 325
- Joined: Sun May 08, 2016 8:19 pm
- SFD Account: phasmic
- SFD Alias: sree
- Gender:
- Age: 25
Post
by Sree » Tue Jun 11, 2019 6:52 pm
just so you know, instead of having to edit the background out of each and every map you have through the map editor, you could just write a script that removes all the background objects during gameplay

5 x
-
Billy
- Superfighter

- Posts: 285
- Joined: Fri Apr 22, 2016 3:56 pm
- Title: Owner of a failed Clan
- SFD Account: Billy
- SFD Alias: Billy
- Started SFD: October 2015
- Location: Austria
- Gender:
- Age: 24
Post
by Billy » Wed Jun 12, 2019 6:44 am
If you hide all layers except the background, you can delete everything at once, so idk if it would be worth making a script for that.
0 x
Join Delta Squad today, if you mail me now you will get this cool private rank for FREE, but thats not all, you will also get an imaginary Cookie, so better hurry up!
Yea, ehh, that was a big fail...
-
Sree
- Superfighter

- Posts: 325
- Joined: Sun May 08, 2016 8:19 pm
- SFD Account: phasmic
- SFD Alias: sree
- Gender:
- Age: 25
Post
by Sree » Wed Jun 12, 2019 7:28 am
Billy wrote: ↑Wed Jun 12, 2019 6:44 am
so idk if it would be worth making a script for that.
4 lines of code eliminates the necessity of having to remove the background out of each map (and the maps you download later on), is it not worth it?
3 x
-
RickAvory
- Superfighter

- Posts: 787
- Joined: Wed Oct 12, 2016 11:27 pm
- Title: Sunny City Nationalist
- SFD Account: Rick Avory
- SFD Alias: (EA) Rick Avory
- Started SFD: Sep 2016
- Location: United States
- Gender:
- Age: 25
-
Contact:
Post
by RickAvory » Wed Jun 12, 2019 4:00 pm
Did you post it on steam workshop Nets? Would love to check it out.
0 x
We must root out the impurities in our midst
-
Noble
- Moderator

- Posts: 482
- Joined: Wed Mar 30, 2016 6:46 pm
- Title: Modest guy
- SFD Alias: Best player
- Location: Brazil
- Gender:
Post
by Noble » Thu Jun 13, 2019 1:30 am
Sree wrote: ↑Tue Jun 11, 2019 6:52 pm
just so you know, instead of having to edit the background out of each and every map you have through the map editor, you could just write a script that removes all the background objects during gameplay
You kinda saved this topic here though
Can you send the code here? Shoulda post it on Steam too, surely that'd be useful for some people (like
this guy right here)
0 x
When I was 22 I read this book
And I swore
"I'll stay my way, I'll stay my way"
-
Sree
- Superfighter

- Posts: 325
- Joined: Sun May 08, 2016 8:19 pm
- SFD Account: phasmic
- SFD Alias: sree
- Gender:
- Age: 25
Post
by Sree » Thu Jun 13, 2019 9:33 am
Noble wrote: ↑Thu Jun 13, 2019 1:30 am
You kinda saved this topic here though
Can you send the code here? Shoulda post it on Steam too, surely that'd be useful for some people (like
this guy right here)
I am really lazy to put it on steam, but for those who need it, here ya go.
Code: Select all
public void OnStartup() {
foreach (var o in Game.GetObjects<IObject>().Where(o => o.Name.Contains("Bg")))
o.Remove();
}
2 x
-
Nets p2
- Fighter

- Posts: 41
- Joined: Sat Mar 19, 2016 9:15 pm
- Title: Map Creator
- SFD Account: Nets
- Started SFD: since the first versions
- Location: Brazil
- Gender:
- Age: 27
Post
by Nets p2 » Fri Jun 14, 2019 4:52 pm
Sree wrote: ↑Tue Jun 11, 2019 6:52 pm
just so you know, instead of having to edit the background out of each and every map you have through the map editor, you could just write a script that removes all the background objects during gameplay
Nice script bro, but with your script what is your fps?
KliPeH wrote: ↑Tue Jun 11, 2019 9:03 am
I've approved the entry on SFDMaps.
I've also renamed the topic to properly reflect on what this thread is; it's not a miraculous way to "improve server FPS", so please do not
advertise it as such. This is an official map optimized and stripped down to the bare essentials.
That said, I'd love to see a pack of these available to the low-spec players out there.
I understand you men, sorry but I did tests, in several brazilian servers, players that used to open server with lag for 4 people, can open for 4 or 6 people with quality, besides improving fps it also improves the quality of the server. Test my map in your server, or with your friends server.
LINK FOR DOWNLOAD:
https://www.mediafire.com/file/8ffthvja ... 82%29.sfdm
Last edited by
KliPeH on Fri Jun 14, 2019 5:34 pm, edited 1 time in total.
Reason: Merged a double-post.
0 x
-
JakSparro98
- Superfighter

- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 27
Post
by JakSparro98 » Sat Jun 15, 2019 12:35 pm
Sree wrote: ↑Thu Jun 13, 2019 9:33 am
Noble wrote: ↑Thu Jun 13, 2019 1:30 am
You kinda saved this topic here though
Can you send the code here? Shoulda post it on Steam too, surely that'd be useful for some people (like
this guy right here)
[..]
Code: Select all
public void OnStartup() {
foreach (var o in Game.GetObjects<IObject>().Where(o => o.Name.Contains("Bg")))
o.Remove();
}
I would like to point out that this solution is worth in most of the scenarios but not in everyone, since it processes every background tile in a single loop session, consider using async calls or coroutines for your method, we cannot know for sure that the amount of Bg tiles inside a map will always be negligible, some mapmakers use a big amount of them for foliage/organic scenery, trying to remove all of them at one fell swoop every time the map is loaded may cause an initial lag spike.
1 x
-
Gurt
- Lead Programmer

- Posts: 1885
- Joined: Sun Feb 28, 2016 3:22 pm
- Title: Lead programmer
- Started SFD: Made it!
- Location: Sweden
- Gender:
- Age: 35
Post
by Gurt » Sat Jun 15, 2019 12:59 pm
Keep in mind that all background tiles can be interacted with via the ScriptAPI or other triggers/markers in the map. For the most part I think it's OK to simply remove all tiles starting with "Bg" if you really need to but some maps might break so keep that in mind.
For best result I suggest you create a series of "Low-detail" maps and share in the Steam Workshop for others to download.
After that create a custom map rotation list over all "Low-detail" VS maps and select that list when hosting a game and you're all set!
2 x
Gurt