Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Trying to increase fps in games (D3D9)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
7 replies to this topic

#1 Anddos   Members   -  Reputation: 557

Like
0Likes
Like

Posted 02 July 2014 - 06:17 PM

What i am doing is injecting a dll in to the game process and hooking DrawIndexPrimitive, inside the hooked function i am doing
 
if(primcount == 543 && numvertices == 606) //tress
{
//dont render, skip the draw
}
else
{
return device->dip(params);
 
why wouldnt this increase the fps on screen?
}

Edited by Anddos, 02 July 2014 - 06:18 PM.

:)

Sponsor:

#2 Promit   Moderators   -  Reputation: 9849

Like
0Likes
Like

Posted 02 July 2014 - 06:29 PM

Because that's not the bottleneck, so it has no effect on how long rendering takes. What are you actually trying to do?



#3 Anddos   Members   -  Reputation: 557

Like
0Likes
Like

Posted 02 July 2014 - 06:32 PM

I am trying to remove tress from a game thats all over the place so i get better fps


:)

#4 phil_t   Crossbones+   -  Reputation: 5697

Like
0Likes
Like

Posted 02 July 2014 - 10:22 PM

- Does your code actually work? (i.e. does it remove the trees? Does every tree have exactly that primitive and vertex count)

 

 

- What kind of profiling have you done to determine that drawing trees is the bottleneck?



#5 Anddos   Members   -  Reputation: 557

Like
0Likes
Like

Posted 03 July 2014 - 07:29 PM

it removes the tree's but the fps stays the same,its obvious the trees are the bottleneck as there rendering far out in the distance with no view frustrum culling which is a waste of processing power imo.


:)

#6 Promit   Moderators   -  Reputation: 9849

Like
0Likes
Like

Posted 03 July 2014 - 07:42 PM

It's obvious that you're mistaken though, or it would've worked.



#7 L. Spiro   Crossbones+   -  Reputation: 20151

Like
0Likes
Like

Posted 03 July 2014 - 07:57 PM

why wouldnt this increase the fps on screen?

Maybe the frame-rate is capped via v-sync.
Maybe the trees really aren’t that difficult to draw and aren’t a bottleneck.

Before you “optimize” something, make sure it is actually consuming a worthwhile amount of time.


L. Spiro

#8 mhagain   Crossbones+   -  Reputation: 9579

Like
0Likes
Like

Posted 04 July 2014 - 05:05 AM

which is a waste of processing power imo.

 

This is the problem.

 

You're using opinion to decide what you think is or isn't a "waste".  You should be basing decisons on actual verified and verifiable measurements instead.


It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS