Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Pages: [1] 2  All

Author Topic: Characteroptimizing and the polycounter  (Read 8915 times)

0 Members and 1 Guest are viewing this topic.

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Characteroptimizing and the polycounter
« on: August 23, 2006, 10:22:29 AM »

Good morning!

I made several 3d Actor tests during the last days and recognized, that the poly counter tells my something total different to what Max says.
My Actor in Max has 2088 Triangles but WMEs poly counter shows about 4600 in an nearly empty test scene and about 6500 (!) after opening the Escape Menu (just some little textured windows with standard buttons save, exit, etc. )
How is that comming? Or better asked, how can I optimize that? After loading the actor twice one as NPC one as player I lost about 30 fps (from 85 to 53) I better do not think about whats happening after loading a second NPC.
My workstation is really not slow (P4 3Ghz, GeForce 6600GT, 1Gbyte RAM), but we can't expect that possible users accept that high system specs for a 2.75D adventure.
What is the polycounter really counting? I can't find where the triangles should be.

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Characteroptimizing and the polycounter
« Reply #1 on: August 23, 2006, 10:28:07 AM »

The counter shows polygons actually rendered. It's approximately twice as much as the character's polycount, because the character is rendered twice (once for the shadow silhouette).
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: Characteroptimizing and the polycounter
« Reply #2 on: August 23, 2006, 10:43:33 AM »

OMG!?! Twice for the shadows...Hm... I hate the idea behind killing a half of my triangles...How about the DrawBackfaces attribute? Is it working as standard, or has it to be activated manually?

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Characteroptimizing and the polycounter
« Reply #3 on: August 23, 2006, 10:55:03 AM »

that's really strange. I am testing my game on Athlon XP+ 1800, with GeForce FX5600 and I have 86fps (monitor refresh rate) with exactly two times bigger framerate (including particle engines and such).

On the other hand typical low poly model for such engines is around 3000 polys max.

One more thing, I believe that you can switch off shadows, but if you want to have shadows on your scene, it's necessary to render them so there's no way around that.

Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Characteroptimizing and the polycounter
« Reply #4 on: August 23, 2006, 10:57:27 AM »

what's your screen resolution?
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Characteroptimizing and the polycounter
« Reply #5 on: August 23, 2006, 11:04:15 AM »

Quote
OMG!?! Twice for the shadows...Hm... I hate the idea behind killing a half of my triangles...
Well that's the way it is. The shadow has to be rendered *somehow*. Of course, you could sacrifice the shadow quality by using the "simple shadow", i.e.  the simple black blob. It's just 2 polygons :)

Quote
How about the DrawBackfaces attribute? Is it working as standard, or has it to be activated manually?
By default DrawBackfaces is enabled. If your model doesn't rely on backfaces, you can set it to false (actor.DrawBackfaces = false;).

As for the window raising polygon count, you can "optimize" it by not using the "tiled image" for the window backround, but a single image.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: Characteroptimizing and the polycounter
« Reply #6 on: August 23, 2006, 11:10:16 AM »

That is not that strange in fact, because the res is 1024 768 4x Antialiasing and two monitors. It is more the fact behind having so many Triangles (as said the double of the figure normally has). Even what I do not understand is, that the menu has about 2600 Tris.... I do not want to decrease the tris of the actor down to 1500 than he looks like Trinity and she is really low. The menu is actually no problem, because the framerate is jumping back to 85, I was just wondering about.

Ok, when you say... I normally do not give a damn about shadows, that is the thing of our coder  ;D

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Characteroptimizing and the polycounter
« Reply #7 on: August 23, 2006, 11:15:27 AM »

I am using 1024x768 6x alias on the Ati card and 4x on the GeForce card... Strange.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: Characteroptimizing and the polycounter
« Reply #8 on: August 23, 2006, 11:19:26 AM »

(actor.DrawBackfaces = false;).

I tried it out, it made no difference, wether for frame nor for the poly counter...

@metamorphium: Can the second monitor be the reason for this behaviour? Do you have a second one?

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Characteroptimizing and the polycounter
« Reply #9 on: August 23, 2006, 11:23:14 AM »

no. I don't have second monitor. Maybe it can really be related. Maybe if you upload somewhere some test scene, we can look at that on our computers.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: Characteroptimizing and the polycounter
« Reply #10 on: August 23, 2006, 11:28:47 AM »

Unfortunately uploading a test scene is not possible yet, it is problem with the rights (the project is commercial). I try it out, I'll pump the actor up to 7000 tris and try it one time with both screens and than deactivate the second one.
Give me a minute.

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: Characteroptimizing and the polycounter
« Reply #11 on: August 23, 2006, 11:37:26 AM »

Ok, I pumped him up to 10 000 that caused a maximum poly count of 23 000 in the scene (low poly NPC, scene, high poly actor).
With second screen: 35 frames
without: 36 frames

That is not the reason. Ok, I'll eat something and than I continue my search.

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: Characteroptimizing and the polycounter
« Reply #12 on: August 23, 2006, 12:11:55 PM »

I can't find a reason, playing WME only on the second screen makes no difference at all.
Hopefully it works after adding more sprites and scripts not as lame as a one legged turtle.

Another question about the actors. With the Ms3d actors it was possible to cut all animations to several files, to load only that one, you need, like an separate take animation. Is that also possible with the X files? I tried it at the same way I used to do with the milkshapes but it doesn't work.
« Last Edit: August 23, 2006, 12:15:58 PM by Amo »
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Character optimizing and the polycounter
« Reply #13 on: August 23, 2006, 12:37:25 PM »

try closing all other applications. For example 3d studio Max tends to reduce performance to half the number of the frames.
Also trz to run it in compiled mode with project man and scene edit instances closed.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: Characteroptimizing and the polycounter
« Reply #14 on: August 23, 2006, 12:54:38 PM »

Does scene edit and project man need so many resources? That could be a reason, max is already closed. We try, otherwise I do not know what to do.
Pages: [1] 2  All
 

Page created in 0.037 seconds with 19 queries.