Jump to content
  • entries
    165
  • comments
    199
  • views
    87,374

Compounding a problem (child object counts)


Flexman

1,355 views

 Share

Compounds, the Herat map contains approx 500 of them. Each one consisted of a number of walls and out buildings. Turns out, these sub objects chewed through a bit of processing time. In effect there were 7500 objects getting worked through. That's a lot and it was reflected in the performance in LE 2.31 on a fully dressed map.

 

By collapsing the compound models into a single object for the lower LODs we saw a large increase in fps in LE 2.31. Although LE 2.32 shows not much difference (it's a better performer anyway) due to it's quad-tree culling system. Even so there lots of fine tuning to do, cockpit switches to be instanced, general code trimming. Entity view ranges, material combining and a dynamic detail function to add.

 

Today I've been working on fixing the lighting buffer for the cockpit entity but I'm having problems copying the cockpit buffer into the main view buffer. Much strangeness, it's some alpha/blending issue I can't quite get a handle on but I'll get there.

 

I spent some time looking at Open-flight as a specification for storing lots of scene data. It's not really designed for high efficiency 3D engines. And not surprising that other engines that use it have adopted some conversion process. Initially the idea was sound but on closer inspection it's just plain awful. Maybe I'm missing something in the organisation and construction of individual objects.

 

 

Here are some random shots from today.

 

Cockpit interior now moved to it's own world for rendering lighting. Materials are not happy but it's steady as a rock. You can see the GPU terrain mesh with it's 10 meter resolution rendering a DEM of mountains in the NW of Afghanistan.

screenshot_270.jpg

 

Not much to say about this. Pre optimisation and post debug slowdown. Not happy at all. It was just this slow on my dev machine. My laptop is much happier.

screenshot_271.jpg

 

The saturation and contrast levels adjusted on the "fly" can change the look of the game.

 

screenshot_272.jpg

I like heavily saturated games which is probably due to my first colour computer, a Sinclair ZX Spectrum which was a train-crash of colours, all eight of them. I still have one of the later models hanging around my desk (see photo I just took below). This one has an Interface 1 for Microdrives. If you don't know what they were, have a bit of fun and look them up. Strange to think that that kind of technology is still used as a backup system today. In the 80's my first games didn't get very good reviews, we had a laugh looking them up on the internet last week. They would make good mobile games today I think....hey I just found my keys.

 

speccy.jpg4946580266235927217-5037167465553055663?l=combathelo.blogspot.com

 

Source

 Share

2 Comments


Recommended Comments

It's a pitty that you don't have rendered shadows on the ground. It makes all looking very flat (I mean the structures on the ground).

Link to comment

There are shadows but sometimes they are pulled up close to maintain fps. We're finding ways to improve performance all the time.

 

When you're running around on the ground it's fine apart from the lack of veg detailing which we don't have the memory for unless we can add some procedural scrub. At medium altitudes, well I'm sure you'll agree it's hard to push shadows out very far.

 

With only 3 shadow ranges and if you push the third one out too far it looks quite 'diffuse'. Some kind of distant shadow layer would be a good, perhaps by baking them onto a texture layer.

 

Baking some ground AO onto the buildings would help too. If I was clever I'd have them sitting on a floor mesh upon which I could update a single shadow. There's three compounds at different orientations so it might work.

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...