Page 12 of 29

Re: Major Performance Issues

Posted: 2013-08-14 20:00
by AFsoccer
130 buildings and walls have occlusion meshes and they are already in-game. Psyrus might be able to give us an idea of what percentage that is, but it's quite a lot and he's been a one-man workhorse in getting them done (so some thanks are in order). He'll continue to work on those that don't have an occ mesh yet and fix the very few that are bugged.

Re: Major Performance Issues

Posted: 2013-08-15 00:40
by EminentDomain17
Well at least we are now getting somewhere. I played today and my frames dropped significantly when looking at a city. So it has yet to be fixed. I assume it's a work in progress. Keeping my fingers crossed. :roll:

Re: Major Performance Issues

Posted: 2013-08-15 01:24
by Tim270
EminentDomain17 wrote:Well at least we are now getting somewhere. I played today and my frames dropped significantly when looking at a city. So it has yet to be fixed. I assume it's a work in progress. Keeping my fingers crossed. :roll:
Map to map FPS IS going to vary, we understand there are performance issues and are working on it.

Re: Major Performance Issues

Posted: 2013-08-15 02:31
by Psyrus
Yes, it's already in-game, and it is working for everyone (it's an engine thing, not a PR thing).

It isn't a very effective fix. Ironically, the OCC meshes are more effective in more built up areas, because basically you need one object to block the view of other objects (completely, even 1 pixel showing will render the other object), so on something like fallujah, there's quite a lot of space between buildings/roads, and thus unless you go right up to a building (where it takes most of your view and occludes other stuff), the performance improvement isn't that good. That's why I said the example above was a best-case scenario

It does make a little difference, especially since I did the enterable buildings as well, so you're not rendering players/weapons/caches inside buildings when you don't have direct LOS [line of sight] to them :)

-----------

The biggest performance enhancers would be:
** Reducing the draw calls, having everything's final LOD just using one, basic color texture. Preferably higher LODs also reducing the texture call
* In addition to the point above, having more vegitation clusters rather than individual vegitation objects. The fields in fallujah, for example, rather than having a bunch of little ones, exporting the entire map's field areas as one object would help draw calls.
- Getting rid of the piecemeal afgan statics (It's like 20+ buildings merged into one)
- Like Rhino's guide for vehicles, having very low poly final LODS for everything

The problem with the above is that all of those steps are retrospective [not a good word choice, but can't find the right one] steps, and in many cases doing those kinds of changes can be very time consuming.

Re: Major Performance Issues

Posted: 2013-08-15 11:13
by Bob12432
'[R-CON wrote:Psyrus;1935907'] here's a more "ideal" situation comparison.
Image
Whats the Name of the Tool you are using in the Picture to display Drawcalls?

Re: Major Performance Issues

Posted: 2013-08-15 11:33
by Psyrus
Bob12432 wrote:Whats the Name of the Tool you are using in the Picture to display Drawcalls?
objectdrawer.xxxx

Re: Major Performance Issues

Posted: 2013-08-15 14:27
by Pyrohair
[R-CON]Psyrus wrote: Ironically, the OCC meshes are more effective in more built up areas, because basically you need one object to block the view of other objects
So cities like the one in Black Gold because you can basically look at the whole thing from a mountain? Are the OCC meshes done for that city already?

Re: Major Performance Issues

Posted: 2013-08-15 14:49
by Psyrus
Pyrohair wrote:So cities like the one in Black Gold because you can basically look at the whole thing from a mountain? Are the OCC meshes done for that city already?
Basically if the object doesn't block your view completely of another object, both will be rendered. So overlooking a city from above (at an angle) is when the OCC meshes will do basically nothing, except hide small objects behind the buildings. Other buildings will not be occluded.

The OCCs meshes are done on an object by object basis. I basically asked Ancientman for a list of the most used statics and started with those. Essentially any large building that exists in PR now has them, including most walls. I also made meshes for the cave systems and underground tunnels that we have, so that stuff inside isn't rendered for those outside, and I believe I made them double sided so that if you're inside, you don't have to render the stuff outside.

Re: Major Performance Issues

Posted: 2013-08-15 15:07
by Prevtzer
How were these things done in previous versions?

Re: Major Performance Issues

Posted: 2013-08-15 15:16
by Kothra
I don't think this is really related to the performance drops that I, at least, experience, because when I do get drops, my framerate stays down regardless of what's in view. I can shove myself against a wall with nothing else in view ans still be getting only 15-20 frames per second.

Re: Major Performance Issues

Posted: 2013-08-15 21:16
by iwingi
Kothra wrote:I don't think this is really related to the performance drops that I, at least, experience, because when it does, my framerate stays down regardless of what's in view. I can shove myself against a wall with nothing else in view ans still be getting only 15-20 frames per second.
Yep, I'm not entirely sure what is being discussed is really the issue.

Re: Major Performance Issues

Posted: 2013-08-15 23:35
by ShockUnitBlack
It's not. These issues are something new to v1.0 as far as I can tell.

Re: Major Performance Issues

Posted: 2013-08-16 08:50
by Arab
Do you think that by lowering the sound quality you'd get faster fps? (No offense Anders)

Re: Major Performance Issues

Posted: 2013-08-16 09:00
by Prevtzer
Arab wrote:Do you think that by lowering the sound quality you'd get faster fps? (No offense Anders)
Doubt it. My hardware does the vast majority of sound processing, so CPU has to do very little/ nothing and I still get bad FPS.

Re: Major Performance Issues

Posted: 2013-08-16 09:29
by Leopardi
'[R-CON wrote:Psyrus;1935907'] :confused:

I'd like to heartily disagree with that statement. I worked quite hard on getting over 130 done :|

Image

Edit: And just to prove to myself that it is working as intended, here's a more "ideal" situation comparison. Photobucket appears to have tried to optimize my picture, so you can't see the text well, but it goes from 2000 draw calls down to about 133, almost doubling FPS in that situation.

Image
I'm still getting drop to 25 fps even when I look at a wall. I'm going to have to just skip the maps until occlusion is everywhere, it's unplayable.

Re: Major Performance Issues

Posted: 2013-08-16 13:20
by Arab
Leopardi wrote:I'm still getting drop to 25 fps even when I look at a wall. I'm going to have to just skip the maps until occlusion is everywhere, it's unplayable.
In other maps, do you get a good frame-rate?

I blame the engine's limitations for being so slow. Stupid refractor engine.

Re: Major Performance Issues

Posted: 2013-08-16 15:04
by maarit
System Information
------------------
Operating System: Microsoft Windows 7 Enterprise (6.1.7601)
Architecture: 64-bit
Language: Finnish (Finland)
Motherboard: MSI P55M-GD45 (MS-758
Processor: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz (Physical: 4, Logical: 4)
Memory: 8,00 GB

just played dovre skirmish just with 11 players and fps drop to the 22-30...some areas 50 fps.
is my computer that bad or what?

Re: Major Performance Issues

Posted: 2013-08-16 15:26
by Prevtzer
maarit wrote:System Information
------------------
Operating System: Microsoft Windows 7 Enterprise (6.1.7601)
Architecture: 64-bit
Language: Finnish (Finland)
Motherboard: MSI P55M-GD45 (MS-758
Processor: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz (Physical: 4, Logical: 4)
Memory: 8,00 GB

just played dovre skirmish just with 11 players and fps drop to the 22-30...some areas 50 fps.
is my computer that bad or what?
In the Launcher under Support copy all the info and past it here. Wrap it into CODE tags.

Re: Major Performance Issues

Posted: 2013-08-16 15:30
by Kothra
Dovre has its own problems.

Re: Major Performance Issues

Posted: 2013-08-16 16:04
by maarit

Code: Select all

[CODE]
System Information
------------------
  Operating System: Microsoft Windows 7 Enterprise  (6.1.7601)
      Architecture: 64-bit
          Language: Finnish (Finland)
       Motherboard: MSI P55M-GD45 (MS-758 8) 
         Processor: Intel(R) Core(TM) i5 CPU         750  @ 2.67GHz (Physical: 4, Logical: 4)
            Memory: 8,00 GB
      DIMM Modules: DIMM1: 2,00 GB @ 1333 MHz
                    DIMM2: 2,00 GB @ 1333 MHz
                    DIMM3: 2,00 GB @ 1333 MHz
                    DIMM4: 2,00 GB @ 1333 MHz
         Page File: 11,98 GB
    .NET Framework: 4.0

Display Information
-------------------
 Display Device(s): Generic PnP Monitor on ATI Radeon HD 5800 Series
   Display Mode(s): 1280 x 1024 (32 bit) @ 60 Hz
    Driver Version: 9.12.0.0
    Display Memory: 1024,00 MB
     Multisampling: 2, 4, 8
               DPI: 96 (100%)

Audio Information
-----------------
  Primary Playback: Headset Earphone (Logitech USB 
 Primary Recording: Headset Microphone (Logitech US
               EAX: True
           EAX 1.0: False
           EAX 2.0: True
           EAX 3.0: False
           EAX 4.0: False
           EAX 5.0: False
             X-RAM: False

Disk Information
----------------
      Install Path: C:\Program Files (x86)\EA GAMES\Battlefield 2
                    Free: 710,96 GB, Total: 931,41 GB, NTFS
          Mod Path: C:\Program Files (x86)\EA GAMES\Battlefield 2\mods\pr
                    Free: 710,96 GB, Total: 931,41 GB, NTFS
     Profiles Path: C:\Users\lassukka\Documents\ProjectReality\Profiles
                    Free: 710,96 GB, Total: 931,41 GB, NTFS
    Update DL Path: C:\Users\lassukka\AppData\Local\Project Reality\Project Reality BF2\Downloads
                    Free: 710,96 GB, Total: 931,41 GB, NTFS
   Update Log Path: C:\Users\lassukka\AppData\Local\Project Reality\Project Reality BF2\UpdateLogs
                    Free: 710,96 GB, Total: 931,41 GB, NTFS

Game Information
----------------
      CD Key Valid: True
    Installed Mods: bf2, pr, xpack
       Current Mod: pr
       BF2 Version: BF2 1.5
        PR Version: 1.0.35.0
          Language: english
   Debug Available: False
     Large Address: True
Supported Hardware: None

Profile Information
-------------------
      Profile 0001: Victor-Mike
              Type: Online
 Last Used Profile: True
        View Intro: True
        Fullscreen: True
      Display Mode: 1280x1024@60Hz
Display Mode Valid: True
   Graphics Scheme: Medium
     Multisampling: 2x
             VSync: False
   Terrain Quality: Low
   Effects Quality: Medium
  Geometry Quality: Low
   Texture Quality: Medium
  Lighting Quality: Low
   Dynamic Shadows: Medium
    Dynamic Lights: Medium
 Texture Filtering: Medium
    Audio Provider: Hardware
    Provider Valid: True
     Audio Quality: High
               EAX: True
[/code]

also tested asad khal skirmish with few players,fps was 80 and never dropped to the 30.
also bijar canyons 80.(alone in server)
operation marlin was again bad,sometimes going to 20 with 30 palyers.in 0.98 version marlin was running smooth
also khamisyah was quite bad with 60 players,alone at the server it was better but fps was going up and down all the time.
edit:khamisyah was stable maybe after 10 minutes after servers started.

EDIT:even muttrah is going under 30 with 80 players.
:(