Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Low-detail Police Station

Give us your input on how we may improve the game in future versions.
Forum rules
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
Post Reply
User avatar
Nets p2
Fighter
Fighter
Posts: 37
Joined: Sat Mar 19, 2016 9:15 pm
Title: Map Creator
SFD Account: Nets
Started SFD: since the first versions
Location: Brazil
Gender:
Age: 20

Low-detail Police Station

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. :D
 ! 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.
1 x

User avatar
KliPeH
Moderator
Moderator
Posts: 814
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
 
Image

User avatar
Sree
Superfighter
Superfighter
Posts: 321
Joined: Sun May 08, 2016 8:19 pm
SFD Account: phasmic
SFD Alias: sree
Gender:
Age: 19

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

Image

Image
4 x

User avatar
Billy
Superfighter
Superfighter
Posts: 277
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: 18

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...

User avatar
Sree
Superfighter
Superfighter
Posts: 321
Joined: Sun May 08, 2016 8:19 pm
SFD Account: phasmic
SFD Alias: sree
Gender:
Age: 19

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

User avatar
RickAvory
Superfighter
Superfighter
Posts: 752
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: 18
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

User avatar
Noble
Moderator
Moderator
Posts: 442
Joined: Wed Mar 30, 2016 6:46 pm
SFD Alias: |LPH| Nobel
Started SFD: I'm a newbie, teach me well ;3
Location: Rio de Janeiro

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
► Show Spoiler
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
♫ I won't walk into the gates of hell just yet
Though it's where I belong ♪

User avatar
Sree
Superfighter
Superfighter
Posts: 321
Joined: Sun May 08, 2016 8:19 pm
SFD Account: phasmic
SFD Alias: sree
Gender:
Age: 19

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

User avatar
Nets p2
Fighter
Fighter
Posts: 37
Joined: Sat Mar 19, 2016 9:15 pm
Title: Map Creator
SFD Account: Nets
Started SFD: since the first versions
Location: Brazil
Gender:
Age: 20

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
► Show Spoiler
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. :lol:

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

User avatar
JakSparro98
Superfighter
Superfighter
Posts: 477
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 20

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

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1590
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 29

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

Post Reply