SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
10-01-14, 11:48 AM | #1 |
Swabbie
Join Date: Sep 2014
Posts: 12
Downloads: 2
Uploads: 0
|
USML update
Technical details on what I managed to accomplish:
While poking around in the USML codebase I figured out there are faster but more approximate ways to do some of the things that I was doing, so using those I managed to get the average time between updates down to 0.7 seconds per contact at 20nm spread across all cores. Instead of replacing the linear algebra library, I decided to eliminate one very expensive matrix operation and replace it with a bunch of individual scalar operations. That brought computation time per contact down to 0.5 seconds. I'm thinking that's adequate. These computation times are calculated based on the average time for 4 separate benchmarks to run to completion divided by 4. There's a little more to it than that, but it's important to note a single computation actually takes around 2 seconds, but there are 4 happening at once so you'll get one update every 0.5 seconds on average. So now all that remains is creating the actual game. |
10-04-14, 11:12 AM | #2 |
Captain
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
|
That's a very important point. Usually what I see sinking hobbyist projects like these is focusing on the wrong things too early. Yes, it's good and cool to have a super accurate acoustics model that makes former sub sailors think they're at sea, but if you spend all your time on that early and burn out, where's the rest of the game?
The best thing to do is focus on the fundamentals early on. Get your entity system done, get your network communications done, get a game going before adding the flash and bling. Don't worry about the ocean modeling until you have a sonar display, use 20 log R propagation and get dots stacking on your simulated broadband waterfall first. Playability beats pretty any day. |
10-05-14, 01:36 AM | #3 | |
Swabbie
Join Date: Sep 2014
Posts: 12
Downloads: 2
Uploads: 0
|
Quote:
Like I said in the original post, we're using Unreal Engine so it already has an entity-component system and the networking code is written for me. I just need to use some preprocessor macros before variables and the engine takes care of the rest. I've properly finished a few hobby projects before, so I totally understand what you're trying to convey, but benchmarking USML made sense for me. I don't want to make something that isn't as good as what's already available, because then nobody would have any reason to play it. Unfortunately my graphics card died on me today so I'll need to take a break from the project for however long it takes to get it RMA'd. Maybe a week or two. The unreal engine editor doesn't run on integrated graphics. |
|
12-06-14, 07:51 AM | #4 |
Planesman
|
Very interesting!
When I started implementing sonar / acoustics modelling in my sim, I spoke to a couple of ex-submariners, did some research and basically found that truly accurate simulation of underwater acoustics would be almost impossible - there are just too many factors to consider. The temperature of the water, turbulence, currents, the material of the seabed (rock, sand, silt), the frequencies of the sounds involved, and so on... I coded my own fairly simple, abstracted model in the end. I'm extremely interested to see what you come up with - you're clearly taking a far more mathematical approach, and making use of some pretty powerful libraries. Best of luck, this is definitely a project to watch!
__________________
Sub Commander: A free roguelike submarine simulator |
12-09-14, 11:02 PM | #5 | |
Captain
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
|
Quote:
|
|
12-10-14, 02:48 AM | #6 |
Machinist's Mate
Join Date: Jul 2011
Posts: 129
Downloads: 2
Uploads: 0
|
ocean physics and visuals is far more important. i think the good old feeling of sh3 crashing an rocking in rough seas is a must even in a modern sub sim
|
12-10-14, 08:38 AM | #7 |
Captain
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
|
I disagree. Considering modern subs rarely use visual sensors like the periscope, realistic acoustics and sonar are the most important parts in a modern subsim, IMO.
|
12-14-14, 07:19 AM | #8 |
Seasoned Skipper
Join Date: Jul 2007
Location: The Icy North
Posts: 690
Downloads: 189
Uploads: 0
|
There's a reason the Sonalysts games didn't do very well and that's because they just look boring to anyone who isn't a hardcore nuke enthusiast. If you want to base your game around a waterfall sonar display don't expect it to shift a lot of copies.
|
12-22-14, 05:04 PM | #9 | |
Captain
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
|
Quote:
A.) They didn't do much to advance the state of the art since Jane's 688i and had poor realism. B.) They all had a terrible mission editor. C.) They all had lackluster campaigns that did not change at all based on the player's inputs. D.) They all had terrible multiplayer, even DW, which came out in 2004. E.) Because of D, it was easy for the player to quickly become overwhelmed with all the stations that had to be managed, even with autocrew. |
|
|
|