Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

[TWEAKED B1009.27.5] Performance issue with Weapons Release Authorisation window.

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [TWEAKED B1009.27.5] Performance issue with Weapons Release Authorisation window. Page: [1]
Login
Message << Older Topic   Newer Topic >>
[TWEAKED B1009.27.5] Performance issue with Weapons Rel... - 3/24/2019 3:40:23 PM   
Zanthra

 

Posts: 122
Joined: 2/6/2019
Status: offline
The weapons release authorization window has substantial performance issues. Despite being very useful in order to use SAMs and AAMs automatically only in no escape zones, and better managing AGM or SSM ammo useage, I always dread opening and working with it.

Not only does the window take a long time to list the available weapons for configuration, and take a long time to open the selected weapon, but whenever a inherited configuration is changed, it executes a long running function on the event thread. This hangs the UI for several seconds in many cases, and leaves the program in an unresponsive state.

While when playing the game, WRA can be left at default, and weapons release controlled manually, this is not an option for the non player sides, and can lead to forgotten units heading home with heavy strike packages if you don't keep a close eye on them. I think it would be of great benefit to the game if the performance of this window was investigated.

< Message edited by Dimitris -- 3/28/2019 9:40:40 AM >
Post #: 1
RE: Performance issue with Weapons Release Authorisatio... - 3/24/2019 3:43:42 PM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
Hi,

Can you post a save of a situation where this is especially evident? We are continuously tuning both the sim-core and the UI performance (the new v1.15 update contains a huge update on the "Weapons" and "Magazines" windows specifically for this), so extraneous hang-ups tend to be case-specific. Thanks.

_____________________________


(in reply to Zanthra)
Post #: 2
RE: Performance issue with Weapons Release Authorisatio... - 3/24/2019 3:53:26 PM   
Zanthra

 

Posts: 122
Joined: 2/6/2019
Status: offline
The issue shows up in initial scenarios such as for the scenario "Politics are Local" bonus scenario in Chains of War. If you load up the scenario then hit Ctrl Shift F9 to open Doctrine, then select the WRA tab, then 203mm/55 Triple, then in the Ship - Unspecified row and Weapons per Salvo column set it to 4 rounds. After that going through and configuring each of the 127mm/25 ammo types to only fire 4 all in preparation to set the ships to Engage Opportunities. There are many long pauses during this process.

If it helps you track the bug I can load up a scenario and save it off. This happens when working with the Weapons Release Authorisation in any scenario and in the editor.

< Message edited by Zanthra -- 3/24/2019 4:02:51 PM >

(in reply to Dimitris)
Post #: 3
RE: Performance issue with Weapons Release Authorisatio... - 3/25/2019 6:48:25 AM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
Thanks, I see clearly what you mean. This one's a toughie.

Added some tweaks in B1009.27.5. The actual speed improvement is not substantial, but you get feedback on your action a lot faster so the perceived speed should be improved. Please give it a go and let us know.

_____________________________


(in reply to Zanthra)
Post #: 4
RE: Performance issue with Weapons Release Authorisatio... - 3/26/2019 10:16:02 PM   
Zanthra

 

Posts: 122
Joined: 2/6/2019
Status: offline
Thanks, I'll let you know once that patch gets to Steam how the feedback works.

(in reply to Dimitris)
Post #: 5
RE: Performance issue with Weapons Release Authorisatio... - 3/31/2019 5:42:00 PM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
We'd appreciate feedback before this hits Steam, to be frank.

The update can be downloaded manually from here: http://www.matrixgames.com/forums/tm.asp?m=4612898

< Message edited by Dimitris -- 3/31/2019 5:54:14 PM >


_____________________________


(in reply to Zanthra)
Post #: 6
RE: Performance issue with Weapons Release Authorisatio... - 3/31/2019 8:39:11 PM   
Zanthra

 

Posts: 122
Joined: 2/6/2019
Status: offline
Unfortunately it does not seem much improved, at least when there are a lot of weapons in the list. The UI stall is still pretty bad while inherited options are adjusted, regularly getting to the point where windows claims it’s not responding.

Could you do something like throw up a modal dialog saying something like “Updating WRA. Please Wait...” to hold UI input and keep things synchronized, run the work in another thread to keep the UI thread clear, then dispose of the dialog when the update is done? I don't know the specifics of the code or whether that would work exactly, but as long as it's going to be taking more than a second or so, getting it off of the UI thread I feel is important.

Ideally of course the performance could be improved, but often things are not that easy.

< Message edited by Zanthra -- 3/31/2019 9:39:42 PM >

(in reply to Dimitris)
Post #: 7
RE: Performance issue with Weapons Release Authorisatio... - 4/1/2019 12:55:10 PM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
Actually we offload to a worker thread already, the hard part is synchronizing the UI changes (both WinForms and WPF really really hate it if you do updates outside of the main UI thread, so you basically have to invoke calls on their thread about half a million times).

We'll keep at it. Sorry!

_____________________________


(in reply to Zanthra)
Post #: 8
RE: Performance issue with Weapons Release Authorisatio... - 4/1/2019 11:45:23 PM   
Zanthra

 

Posts: 122
Joined: 2/6/2019
Status: offline
Thanks for looking into it.

I think this is a great game, but sometimes I feel like I am using a Hard Drive again after having used a Solid State Disk for years. The game just takes a few moments for a window to open, or a button to be pressed, or setting to be changed, and I don't really think about it at the time because I am thinking of what I am doing in the game at that moment. It's when I get the ten or so second pauses in the WRA that it interrupts the flow of what I am doing in game and I start thinking about it. Since everything related to the UI (possibly excluding the tactical map) goes through the one Queue, even a small improvement in the speed of some of the half a million delegates and the render calls they may initiate affects everything else after it in the queue as well. Counting and timing executions could be important along with profiling. I think that the UI responsiveness is something that is at least as important as sim speed.

Don't read that too harshly, this is a great game, and in general the UI is not too bad (as long as the game is paused), but the WRA window is borderline unusable in many scenarios.

< Message edited by Zanthra -- 4/2/2019 7:03:27 AM >

(in reply to Dimitris)
Post #: 9
RE: Performance issue with Weapons Release Authorisatio... - 4/2/2019 6:52:55 PM   
serjames

 

Posts: 201
Joined: 2/21/2016
Status: offline
I can confirm that whatever was changed has made this much worse - it's gone from 4-5 secs to now around 28-30 seconds. big delay as the scroll bar is re-drawn.


Playing "First night" from the desert storm pack- specifically changing the Phoenix missiles to "2 firing units". Takes literally 30 secs.

Version is 1.15 build 1009.27.6

(in reply to Zanthra)
Post #: 10
RE: Performance issue with Weapons Release Authorisatio... - 4/2/2019 7:46:56 PM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
Let's have a show of more hands.

_____________________________


(in reply to serjames)
Post #: 11
RE: Performance issue with Weapons Release Authorisatio... - 4/2/2019 10:25:46 PM   
AndrewJ

 

Posts: 2318
Joined: 1/5/2014
Status: offline
I tried this with 1009.27.6, and the scenario Mediterranean Fury #4, with an AU Count 4965.

Change WRA for One Unit

Opening the WRA window for a specific unit is effectively instantaneous.
Expanding the line for a specific weapon takes ~ 1.0 to 1.5 seconds.
Changing the value for a specific known target type (e.g. Ship - Auxiliary, 0-500 tons) is effectively instantaneous.
Changing the value for an unknown target category (e.g. "Surface Contact - Unknown Type") takes about 1.5 to 2.5 seconds.


Change WRA for the Side

Opening the WRA window for the entire side takes ~ 11 seconds.
Expanding the line for a specific weapon takes ~ 1.9 to 2.6 seconds.
Changing the value for a specific known target type is effectively instantaneous.
Changing the value for an unknown target type takes about 17 to 19 seconds.


I can certainly see how it would get frustrating to make WRA changes to the 'unknown' or 'unspecifed' categories. When you add in the time to scroll, select, and click, you might get two changes per minute. If you wanted to set the WRA for range for all SAMs and AAMs on the player side in this scenario it would take over 15 minutes. If you wanted to set weapons per salvo as well, then you're talking about half an hour.

(Edit: not being a scenario designer, and usually firing all shots manually, I've not needed to use the WRA window much. Has it always acted this way? Could this be a contributing factor in why many scenario designers tend not to set specific WRAs?)



< Message edited by AndrewJ -- 4/2/2019 10:32:05 PM >

(in reply to Dimitris)
Post #: 12
RE: Performance issue with Weapons Release Authorisatio... - 4/2/2019 11:03:10 PM   
serjames

 

Posts: 201
Joined: 2/21/2016
Status: offline
It has always been very very slow. I try to set all WRA's from master side doctrine, otherwise you end up making double work later down the line, and yep, if you're changing weapon salvos too e.g. rockets.. or Bombs, it can take an age :-)

(in reply to AndrewJ)
Post #: 13
RE: Performance issue with Weapons Release Authorisatio... - 4/4/2019 12:26:44 AM   
Zanthra

 

Posts: 122
Joined: 2/6/2019
Status: offline
Auto Resiszing rows seems to be taking the bulk of the CPU time when updating the WRA window. Shrinking the WRA window to only show a few rows while changing an inherited value does make it faster in a linear relationship, so I gather that the window is set to resize only visible rows. If there are only 10 visible rows it loads things about twice as fast as if there are 20 visible rows. On the other hand it's also linearly related to the total number of rows being added to the window (opening the category for an air to air missile, 20 rows, takes about half as long as to open the category for a Harpoon, 40 rows). Changing an inherited setting causes the entire window to be repopulated, meaning it takes time according to the number of rows that can fit in the window times the total number of rows in the list (including any open categories). I think what is happening is that it's not calculating the auto sizing for each row added if it's visible, but rather calculating the size of every visible row each time a row is added!

< Message edited by Zanthra -- 4/4/2019 4:22:24 AM >

(in reply to serjames)
Post #: 14
RE: Performance issue with Weapons Release Authorisatio... - 4/4/2019 7:52:16 PM   
serjames

 

Posts: 201
Joined: 2/21/2016
Status: offline
Well I play in 4K... lots of rows... so this might be the cause !

YEP ! Thanks so much, that's made a HUGE difference. It's window size. :-) The little things eh

(in reply to Zanthra)
Post #: 15
RE: Performance issue with Weapons Release Authorisatio... - 4/6/2019 4:21:26 PM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
quote:

ORIGINAL: Zanthra
Auto Resiszing rows seems to be taking the bulk of the CPU time when updating the WRA window. Shrinking the WRA window to only show a few rows while changing an inherited value does make it faster in a linear relationship, so I gather that the window is set to resize only visible rows. If there are only 10 visible rows it loads things about twice as fast as if there are 20 visible rows. On the other hand it's also linearly related to the total number of rows being added to the window (opening the category for an air to air missile, 20 rows, takes about half as long as to open the category for a Harpoon, 40 rows). Changing an inherited setting causes the entire window to be repopulated, meaning it takes time according to the number of rows that can fit in the window times the total number of rows in the list (including any open categories). I think what is happening is that it's not calculating the auto sizing for each row added if it's visible, but rather calculating the size of every visible row each time a row is added!


Thank you. That comment turned out to be extremely useful for troubleshooting this issue.

If there was a way I could sticky this post as a bright example of players helping the dev team discover the root problem instead of pointlessly antagonizing them, I would.

Thanks again.

_____________________________


(in reply to Zanthra)
Post #: 16
RE: Performance issue with Weapons Release Authorisatio... - 4/6/2019 4:54:38 PM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
Drastically improved for the next update release, thanks to Zanthra's, serjames's & AndrewJ's feedback.

_____________________________


(in reply to Dimitris)
Post #: 17
RE: Performance issue with Weapons Release Authorisatio... - 4/6/2019 6:05:46 PM   
AlphaSierra

 

Posts: 132
Joined: 2/13/2017
Status: offline
My scenarios are still not working, tomahawks and other ASM hang in the air, looks like weapon launch points for airstrikes have all been altered.

It's unplayable period

Please provide a way to uninstall these updates ASAP

And please wait to release "updates" to the public until they have been thoroughly tested going forward.

_____________________________

I wish to have no connection with any ship that does not sail fast; for I intend to go in harm's way. -John Paul Jones

(in reply to Dimitris)
Post #: 18
RE: Performance issue with Weapons Release Authorisatio... - 4/6/2019 6:15:45 PM   
BDukes

 

Posts: 1695
Joined: 12/27/2017
Status: offline

quote:

ORIGINAL: AlphaSierra

My scenarios are still not working, tomahawks and other ASM hang in the air, looks like weapon launch points for airstrikes have all been altered.

It's unplayable period

Please provide a way to uninstall these updates ASAP

And please wait to release "updates" to the public until they have been thoroughly tested going forward.


Post saves of these behaves in bug section. It will make easy for developer to find fix so not have to dig through the unrelated forum. This best way.

(in reply to AlphaSierra)
Post #: 19
RE: Performance issue with Weapons Release Authorisatio... - 4/20/2019 3:28:04 AM   
Zanthra

 

Posts: 122
Joined: 2/6/2019
Status: offline
It looks like the latest update has fixed this entirely. It is orders of magnitude faster now. Also loading the Aircraft Ops window on groups with multiple carriers is much better. Thank you! :)

A side effect mentioned here, and which I have observed also: http://www.matrixgames.com/forums/tm.asp?m=4620961 where users can resize the rows is likely due to the fact that the forms control has manual resize allowed by default, but was previously implicitly disabled when auto resizing was enabled.

Thanks again for the fix!

(in reply to BDukes)
Post #: 20
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [TWEAKED B1009.27.5] Performance issue with Weapons Release Authorisation window. Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.717