playMaker

Author Topic: 100 Orcs WIP  (Read 15255 times)

jess84

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
Re: 100 Orcs WIP
« Reply #45 on: July 12, 2014, 03:54:09 PM »
Sorry, that's unplayable for me - down to 3fps almost immediately after starting the level.

 :(

KellyRay

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: 100 Orcs WIP
« Reply #46 on: July 12, 2014, 05:46:00 PM »
Doh! Shoot. I wonder what caused it this time.

KellyRay

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: 100 Orcs WIP
« Reply #47 on: July 23, 2014, 11:52:43 AM »

jess84

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
Re: 100 Orcs WIP
« Reply #48 on: July 23, 2014, 03:02:30 PM »
Sorry, just as bad.  :(

This is after about 5 seconds of gameplay:

KellyRay

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: 100 Orcs WIP
« Reply #49 on: July 24, 2014, 06:53:59 AM »
How disappointing! Okay! Hang tight, I can figure this out!

KellyRay

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: 100 Orcs WIP
« Reply #50 on: July 25, 2014, 06:51:24 PM »
Here we go again! I even drug out my 6 year old laptop to play test it on. Had 50 fps even with 15 plus enemies on the screen attacking me at once!

https://dl.dropboxusercontent.com/u/39578945/100%20Orcs%20Proto/100%20Orcs%20Proto.html
« Last Edit: July 25, 2014, 07:33:25 PM by KellyRay »

jess84

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
Re: 100 Orcs WIP
« Reply #51 on: July 26, 2014, 05:57:01 PM »
Slightly better, but down to less than 10fps in no time.

My laptop is an i3, so I doubt it's hardware related.

Edit:  Tested in 2 different browsers (Chrome and Seamonkey), and it behaved in the same way on both.

And my dxdiag info:

Code: [Select]
------------------
System Information
------------------
Time of this report: 7/27/2014, 03:01:02
       Machine name: -
   Operating System: Windows 7 Home Premium 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.130104-1431)
           Language: English (Regional Setting: English)
System Manufacturer: Acer           
       System Model: Aspire 7740                   
               BIOS: Ver 1.00PARTTBL
          Processor: Intel(R) Core(TM) i3 CPU       M 370  @ 2.40GHz (4 CPUs), ~2.4GHz
             Memory: 6144MB RAM
Available OS Memory: 6004MB RAM
          Page File: 3440MB used, 8566MB available
        Windows Dir: C:\Windows
    DirectX Version: DirectX 11
DX Setup Parameters: Not found
   User DPI Setting: Using System DPI
 System DPI Setting: 96 DPI (100 percent)
    DWM DPI Scaling: Disabled
     DxDiag Version: 6.01.7601.17514 32bit Unicode

---------------
Display Devices
---------------
          Card name: ATI Mobility Radeon HD 5400 Series
       Manufacturer: Advanced Micro Devices, Inc.
          Chip type: AMD Radeon Graphics Processor (0x68E0)
           DAC type: Internal DAC(400MHz)
         Device Key: Enum\PCI\VEN_1002&DEV_68E0&SUBSYS_03471025&REV_00
     Display Memory: 3250 MB
   Dedicated Memory: 503 MB
      Shared Memory: 2746 MB
       Current Mode: 1600 x 900 (32 bit) (60Hz)
       Monitor Name: Generic PnP Monitor
      Monitor Model: unknown
         Monitor Id: AUO139E
        Native Mode: 1600 x 900(p) (60.307Hz)
        Output Type: Internal
       
« Last Edit: July 26, 2014, 06:04:28 PM by jess84 »

KellyRay

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: 100 Orcs WIP
« Reply #52 on: July 27, 2014, 07:49:29 PM »
I tried to replicate this with 30+ orcs on the screen and this is what I got. I took away the health watcher so I wouldn't lose any health to get as many orcs as I could.



I'm going to try an experiment. I'm taking away the triggers to see if the FPS issue goes away.

https://dl.dropboxusercontent.com/u/39578945/100%20Orcs%20Proto/100%20Orcs%20Proto.html

jess84

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
Re: 100 Orcs WIP
« Reply #53 on: July 28, 2014, 08:17:54 AM »
That was slightly better, down to 5fps and then recovered to 20fps, and then would fluctuate between those values. However with about 12 orcs on screen it went back down to 3fps. Sorry.

KellyRay

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: 100 Orcs WIP
« Reply #54 on: July 28, 2014, 10:03:50 AM »
Slightly better is good!

xhidnoda

  • Full Member
  • ***
  • Posts: 231
    • View Profile
Re: 100 Orcs WIP
« Reply #55 on: July 29, 2014, 05:44:30 AM »
great job!

KellyRay

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: 100 Orcs WIP
« Reply #56 on: July 29, 2014, 05:52:14 AM »
Thanks! Just out of curiosity, did you have any lag issues?

KellyRay

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: 100 Orcs WIP
« Reply #57 on: July 29, 2014, 05:16:54 PM »
I really think I figured this out!

What I think my problem has been is no the triggers for the orcs at all. But instead the triggers in the character. When the Orcs attack, I've used the animator to turn their hit boxes off and on. This is where I have been looking for the problem. But I believe the actual problem is that when the Hero is hit, his trigger collider is never turned off so 15 plus orcs are hitting him at once triggering events on their end, but does nothing visual to indicate that this is happening because the Hero has already been hit. So, to fix the issue I have set up the actions to turn off the trigger as soon as the hero is hit first and then turn it back on after the damage is dealt and he is read to be hit again. Take another stab at the demo and tell me if you see any improvement!

http://bit.ly/100orcs

jess84

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
Re: 100 Orcs WIP
« Reply #58 on: July 29, 2014, 05:34:51 PM »
slight improvement, until there's about 10 orcs onscreen, and it's back to 3fps for me.

Are you sure it's related to the triggers? If you avoid the orcs (by running and jumping over them), you can get it down to 3fps pretty quickly, even though you're not hitting anyway, and nothing is hitting you.
« Last Edit: July 29, 2014, 05:37:29 PM by jess84 »

KellyRay

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: 100 Orcs WIP
« Reply #59 on: July 29, 2014, 06:08:56 PM »
I'm unsure of what else it could be. I'm only drawing 5 calls. And other people have told me that the problem only happens for them when there is attacks going on.  :-\