r/treeofsavior • u/kouyukie • May 30 '16
Recent Client Optimization Measures
https://treeofsavior.com/news/?n=4389
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
-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
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
May 31 '16
[deleted]
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
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
4
2
2
2
2
2
2
2
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
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
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
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
1
0
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
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
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
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
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
3
May 30 '16
[removed] — view removed comment
6
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.