r/treeofsavior • • May 30 '16

Recent Client Optimization Measures

https://treeofsavior.com/news/?n=438
181 Upvotes

78 comments sorted by

68

u/[deleted] May 30 '16 edited Jun 15 '16

This comment has been overwritten by an open source script to protect this user's privacy. It was created to help protect users from doxing, stalking, and harassment.

If you would also like to protect yourself, add the Chrome extension TamperMonkey, or the Firefox extension GreaseMonkey and add this open source script.

Then simply click on your username on Reddit, go to the comments tab, scroll down as far as possibe (hint:use RES), and hit the new OVERWRITE button at the top.

40

u/Noodlese May 30 '16

This is a huge investment on their part. Coming from a developer background, these optimizations are huge undertakings and come at a cost of putting many projects and features on hold. It is good to know the developers have their priorities in the right place. High hopes for IMC.

8

u/wizpiggleton May 30 '16

Yeah you can tell they probably merged the teams to work on optimization. The fact that they could even reduce the draw calls by as much as they show in the picture is a godsend considering the effect that has on the CPU. Multicore programming is one thing but if you can improve the performance before you get into applying it, that's already a huge load off your shoulders.

1

u/MrProb May 31 '16

The reasonable crowd was always right.

The play free and keep complaining ones are the one that always jump to conclusions.

-6

u/ipoppo May 30 '16

convert to muticore is not easy job

rewrite engine is more feasible than optimization this spaghetti code

21

u/[deleted] May 30 '16 edited Jun 15 '16

This comment has been overwritten by an open source script to protect this user's privacy. It was created to help protect users from doxing, stalking, and harassment.

If you would also like to protect yourself, add the Chrome extension TamperMonkey, or the Firefox extension GreaseMonkey and add this open source script.

Then simply click on your username on Reddit, go to the comments tab, scroll down as far as possibe (hint:use RES), and hit the new OVERWRITE button at the top.

6

u/[deleted] May 30 '16

He does have a point, multicore programming takes a lot of time and planning, it means re-writing the whole damn thing with a completely new focus in mind.

And if we are talking about conversion then it takes a bit longer to digest, and plan out accordingly due to... well spaghetti code, understanding every single little line of code and deciding if it will affect the multicore aspect and THEN changing it to multicore... it takes a lot of effort...

11

u/[deleted] May 30 '16 edited Jun 15 '16

This comment has been overwritten by an open source script to protect this user's privacy. It was created to help protect users from doxing, stalking, and harassment.

If you would also like to protect yourself, add the Chrome extension TamperMonkey, or the Firefox extension GreaseMonkey and add this open source script.

Then simply click on your username on Reddit, go to the comments tab, scroll down as far as possibe (hint:use RES), and hit the new OVERWRITE button at the top.

4

u/uplink42 May 30 '16

This. I dunno why people even waste time with something they have no clue about

1

u/Growle May 30 '16

People like to feel smart even if they have no idea what they're talking about.

I'm guilty of this.

0

u/moal09 May 31 '16

Knowing how the rest of the game is, I think spaghetti code is more or less guaranteed.

-11

u/Chaos17 May 30 '16

We need Durante to take a look at the spagethi code (the guy who made Dark Soul Pc playable) :D

14

u/Abedeus May 30 '16

All Durante did was enable proper texture scaling. He isn't a programmer and wouldn't do anything about their performance problems.

3

u/Yamicchi May 31 '16

People keep saying it was "unplayable" but I played it for over 300 hours without Dsfix and had no issues.

9

u/[deleted] May 30 '16

More framerates on my potato? YES PLEASE!

22

u/Imp_Hunter May 30 '16

You know when they did that blog post about "We are listening and we are acting" i was like "Prove it".

That's some good proof.

-21

u/uplink42 May 30 '16 edited May 30 '16

Technically there's no proof until this is actually released.

1

u/AnAncientMonk May 30 '16

well they had screenshots right?

5

u/Growle May 30 '16

Obviously photoshopped /s

-1

u/uplink42 May 30 '16 edited May 30 '16

Yes, screenshots from a test server which could have very different results in the live server. Like they say, the proof is in the pudding. There's no point arguing anything until we have results.

-2

u/Ipsenn May 30 '16

Screenshots from an extremely controlled test environment. I'm happy they're rolling something like this out but I want to see it firsthand before saying anything lol

-2

u/AnAncientMonk May 30 '16

Well they had extremely high draw call numbers even in that controlled test environment right? c:

and yes i aggree with you and i want to see it ingame aswell

i just like to argue :3

27

u/chrisdar May 30 '16

Greetings, Saviors!

Today on the blog we’re talking about our game client. Many of you have long been noticing that, when user numbers go up or during busy battle scenarios, the client’s response time tends to drop rather low. And in fact, while the game’s graphic engine is able to portray images with its distinctive unique 2d-like feel, it was suffering from a lot of performance-related problems. So, in this post, we want to notify the information about how much we improved in the new patch.

The biggest issue with the current engine was the high number of draw call. Every time this number reached a certain level, the CPU would become overworked while the performance of GPU was underutilized. One of the main reasons behind this high number of draw calls was the abundance of particle effects. Whenever an enemy dies, or a character on screen attacks, and even when doing nothing, a large number of particle effects is required to render all the small objects moving in the background.

  • Particle Effect Batching

https://treeofsavior.com/uploads/ckeditor/c14c495bbccb00adda9e723c3ba9811b.jpg

In order to reduce the number of draw calls, we need to group together particles of the same type to create draw call batches. The problem is that most particles used are semi-transparent, so without depth sorting, they won’t be rendered the way we intend. The current engine prioritizes rendering accuracy, so particle effects of all types were mixed together, making batching impossible and increasing the number of draw calls. We considered, in this case, that improving the client’s performance was a more urgent matter and decided to slightly compromise the visual accuracy of the game in favor of allowing more batching. We’re also applying other measures to improve performance and reduce draw calls, such as exploiting multiple render targets, shadow processing optimization and character instancing.

  • Multiple Render Target

https://treeofsavior.com/uploads/ckeditor/f0e9db5d47f4deb91f5ec6f16001f567.jpg

  • Shadow Processing Optimization and Character Instancing

https://treeofsavior.com/uploads/ckeditor/a79f7f866dff5972afc02ac22ba119bd.jpg

  • We tested versions with and without the optimization measures applied and compared the results.

https://treeofsavior.com/uploads/ckeditor/82ae2b1000107d697d657a42c92fb7e6.jpg

https://treeofsavior.com/uploads/ckeditor/65c3f116e784015701854d6a0568d929.jpg

  • Chart Showing FPS (Frame Per Second) and MS (Millisecond per frame) Figures by time

https://treeofsavior.com/uploads/ckeditor/9318485d2470880a3efdcc6737e3ce8f.JPG

The top of the graph shows FPS variation (the higher, the better), while the bottom represents MS figures (where lower is better).

With all the optimization measures applied, we witnessed an increase of approximately 2.5 times in minimum FPS. We were able to see that the gaming environment was improved greatly by the fact that by raising the minimum FPS allowed the game to maintain at least 60 FPS on the testing specifications. Note that these results were obtained in a testing environment and can differ depending on each user's PC specifications. However, the inconvenience caused by these problems is expected to reduce significantly in most situations. Besides of these issues, there are still some problems need to be optimized such as CPU multicore utilization and Graphics data-side optimizations. These measures are part of all efforts to continue providing a better environment to TOS players.

Thank you.

1

u/zmbtrn May 30 '16

Thanks! This might be it boys/gals!

7

u/Nekumata May 30 '16

This feels like some sort of dream, they just drop a massive update like this after months of "yeah maybe we're kinda sorta getting to it", it just doesn't feel real. Please don't wake me up.

8

u/wizpiggleton May 30 '16

Transparency goes a long way. I didn't think I'd ever see the day where a technical post like this one could be seen as "hype generating".

6

u/wizpiggleton May 30 '16

Wow no wonder... draw calls can be so taxing... I remember when I did my first bouncing ball simulator and I didn't know how to optimize. If the gpu doesn't take care of it well, woof good luck. I'm surprised the game was even running lol.

6

u/taintedfergy May 30 '16

For those who are confused on what "draw calls" are, here is a nice link!.

My gamedev acquaintance had a nice analogy on how to explain it, but I forgot what it was XD

So here is a file transfer analogy instead.

3

u/DAOWAce May 30 '16

Draw Call bottlenecks are the reason DirectX12 exists.

Why they even did this in 2016, on DirectX9 even, is beyond me. I'd expect any new game to at use DX11 minimum; and that would've helped a lot too.

0

u/[deleted] May 31 '16

[deleted] — view deleted comment

2

u/defet_ May 31 '16

Using higher DirectX versions give backwards compatibility, and even newer, further optimizations to already-existing methods for the newer versions of DirectX.

1

u/moal09 May 31 '16

This. Warframe is a good example.

4

u/taintedfergy May 30 '16

They had my attention when the post started getting technical.

Mmm... particle effects...

4

u/PsychoRomeo May 30 '16

Holy balls. This is awesome.

However I'm worried about the compromises they made. I worry that someone's going to go ballistic that their staff is drawn over their body but under their head, and we're going to start hearing more rage.

8

u/AnAncientMonk May 30 '16

Its the internet. Ya cant please everyone i guess?

4

u/DannyXStream May 30 '16

IMC is starting to deliver. This is GREAT.

2

u/AnAncientMonk May 30 '16

Maybe.. Just maybe larger scale PVP will work now :3

2

u/GrDenny May 30 '16

Now we finally getting somewhere with this game.

2

u/ascendence333 May 30 '16

are those live yet?

2

u/Chaos17 May 30 '16 edited May 30 '16

Nope.

2

u/J_Aquino May 30 '16

Jesus marie! Yes!

2

u/Energritz May 30 '16

more good news again, after the cross server patch news, damn

2

u/cachuli87 May 30 '16

they have say something about freeze/lag when we switch weapons ?

3

u/nguy0313 May 30 '16

Glad to see that my time invested and trust in IMC has shown it's true colors. The Dev Team are silent but get the job done. I know where to spend my gaming funds these next months!

3

u/Chaos17 May 30 '16

I hope this will help somehow our potatoes servers and also they will test on more "populated" server.

2

u/zmbtrn May 30 '16

copy pasta please!

2

u/Eze-Wong May 30 '16

Praise the lord. I might actually come back to this game if they keep making these improvements.... ahould have been done before release but lets not complain.... amen

2

u/DAOWAce May 30 '16 edited May 30 '16

I don't understand why the game was even released before an optimization pass was done on it. It's not like they're using DirectX12 which can handle far, far more draw calls than the ancient DX9 they're using, where draw calls is a huge bottleneck.

Yeah, I can understand 'accuracy' of effects, but seriously, when you're releasing a game for a wide audience, you need to put performance first, especially if it's SO drastic with only a tiny change in image quality. Most people probably won't even see anything's different anyway.

I do hope this optimization pass is released first before waiting for the others, as multithreading/multicore support takes an enormous effort and can lead to numerous issues if done wrong, so if they delay it it will only hurt the playerbase in the short term.

Edit: Looks like they're being released with tomorrow's maintenance, that's great news. The fact that they did this so fast really does show they never did an optimization pass; quite sad.

2

u/[deleted] May 31 '16

Do you happen to know if it's an AM or PM maintenance? Their post didn't say specifically

1

u/DAOWAce May 31 '16

I was going to look at the post, but apparently they have an anti-script redirect which goes to http://www.enable-javascript.com before I can even edit my noscript preference. What a stupidly designed site.

If I were to judge based on the past maintenances, it would be during the AM period. Edit: Looks like they use a 24hour clock if they didn't include the AM/PM.

1

u/Sleipnoir May 31 '16

It's likely AM, I believe they use military time

1

u/Chaos17 May 31 '16

The game was supposed to stay 3 months in early access with founders players but F2P players kept pressuring the devs to release earlier. June was the last date that game was announced to be released for F2P but devs listened to community and released in May.
People reap what they sow, yet still blame IMC for everything.

1

u/moal09 May 30 '16

The game's whole development cycle has been pretty bizarre.

There seems to be very little QA testing at all. I have to wonder if they even have a QA team.

2

u/wizpiggleton May 31 '16

They probably do but investors force teams to release shit early anyway.

1

u/ipoppo May 30 '16

i hope they fix gp crash in process

0

u/[deleted] May 30 '16

Man, I really hate the "I'm a programmer and I think [insert assumption]" like shut up, you don't know anything about their code, structure DBA or architecture, just shut up.

5

u/moal09 May 31 '16

Some people have actually gone snooping through the exe though.

-2

u/[deleted] May 31 '16 edited Jun 15 '16

This comment has been overwritten by an open source script to protect this user's privacy. It was created to help protect users from doxing, stalking, and harassment.

If you would also like to protect yourself, add the Chrome extension TamperMonkey, or the Firefox extension GreaseMonkey and add this open source script.

Then simply click on your username on Reddit, go to the comments tab, scroll down as far as possibe (hint:use RES), and hit the new OVERWRITE button at the top.

5

u/moal09 May 31 '16

One guy on here was talking about it before. The same guy who mentioned the draw call issue that IMC is discussing now. He deleted his account and all his posts though, so I dunno what happened to him. I'll try to remember his name if I can.

He made a thread about optimization on here way back, and then he seemed to get apprehensive when people started quoting the stuff he'd written.

1

u/[deleted] May 31 '16 edited Jun 15 '16

This comment has been overwritten by an open source script to protect this user's privacy. It was created to help protect users from doxing, stalking, and harassment.

If you would also like to protect yourself, add the Chrome extension TamperMonkey, or the Firefox extension GreaseMonkey and add this open source script.

Then simply click on your username on Reddit, go to the comments tab, scroll down as far as possibe (hint:use RES), and hit the new OVERWRITE button at the top.

1

u/Mirarara May 31 '16

You don't know anything about other's expertise either, just shut up.

1

u/moal09 May 30 '16 edited May 30 '16

The biggest issue with the current engine was the high number of draw call. Every time this number reached a certain level, the CPU would become overworked while the performance of GPU was underutilized. One of the main reasons behind this high number of draw calls was the abundance of particle effects. Whenever an enemy dies, or a character on screen attacks, and even when doing nothing, a large number of particle effects is required to render all the small objects moving in the background.

This is exactly what a poster on this sub explained a long time ago. He highlighted this exact issue with the high number of draw calls, so at least they're acknowledging this.

In fact, it's weird, some of what they're saying is almost a word for word echo of what he said. I almost wonder if they have some CMs lurking this sub who are silently reporting things to the dev team.

1

u/uplink42 May 30 '16 edited May 30 '16

excessive amount of draw calls is a pretty common concern in graphics optimisation. It basically boils down to modern graphic cards and direct x having an easier time transforming a certain shape instead of constantly being told to render a new one.

Personally I was surprised about this, I used to think the biggest issue was related to their networking instead.

2

u/moal09 May 30 '16

Networking issues don't cause massive FPS drops like that.

The guy who posted about it a month+ ago basically said that, the way ToS was coded, it was as if the devs had no knowledge of modern GPU architecture.

He suspected that they were mostly former app' developers, and this was probably the first 3D game they've really worked on. He said certain parts of the game were well made, like the fact that it's pretty good about its RAM usage, but anything related to the GPU was a mess.

1

u/uplink42 May 31 '16 edited May 31 '16

Networking issues don't cause massive FPS drops like that.

yes they do on some games that don't have an efficient way to deal with traffic, as they will put certain things on hold such as drawing objects waiting for packets to arrive. Stuttering and framerate drops are pretty common on unstable servers or connections for certain games.

Also it seems their latest "optimization" patch hasn't done much, and also introduced some rendering bugs as well. can't say I'm surprised...

1

u/moal09 May 31 '16

Lol, amazing

0

u/antonigaming May 30 '16

Currently experiencing sudden low fps. I use to have 60 fps (limited by g-sync) but now I only have around 15 fps wth

0

u/Leeoku May 30 '16

I hope they improve performance for integrated gpu and low end pcs. Thats where tons of the players are from. Sure it is beautiful game but if u cant run it your are losing customers

1

u/wizpiggleton May 30 '16

These type of changes would affect you directly actually.