• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sipping
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 5 of 5

    Thread: c++ VS 2012

    1. #1
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      VDV777's Avatar
      Join Date
      Mar 2013
      Posts
      92
      Thanks (-->)
      38
      Thanks (<--)
      0

      c++ VS 2012

      How to Manual Map DLL
      How to calculate the FPS?

    2. #2
      The Future Hacker
      Learning to hack games!
       
      Feeling Normal
       
      jamesst20's Avatar
      Join Date
      Apr 2013
      Location
      Canada, Quebec, Quebec City
      Posts
      87
      Thanks (-->)
      14
      Thanks (<--)
      12
      Quote Originally Posted by VDV777 View Post
      How to calculate the FPS?
      Please, if you expect a full answer, take at least the time to tell us more details

    3. Thanks VDV777 thanked for this post
    4. #3
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      VDV777's Avatar
      Join Date
      Mar 2013
      Posts
      92
      Thanks (-->)
      38
      Thanks (<--)
      0
      Quote Originally Posted by jamesst20 View Post
      Please, if you expect a full answer, take at least the time to tell us more details
      I want to calculate the FPS in the game and put in my dirextX menu.

      How to do it? Interested in source code.
      Here's what I found on the Internet at:


      DWORD FrameCnt;
      float TimeElapsed;
      float FPS;
      float oldTime;
      float newTime;
      float deltatime;

      FrameCnt++;
      newTime = GetTickCount();
      deltatime = newTime - oldTime;
      TimeElapsed += deltatime;

      if(TimeElapsed >= 500.0)
      {
      FPS = 1000*(float)FrameCnt / TimeElapsed;
      TimeElapsed = 0.0f;
      FrameCnt = 0;
      }

      But it does not work.

    5. #4
      RTFM
      Shootin Pool!
       
      Coding
       
      Syperus's Avatar
      Join Date
      Oct 2012
      Location
      127.0.0.1
      Posts
      436
      Thanks (-->)
      101
      Thanks (<--)
      131
      Are you getting any errors when you compile it?
      Blacks Ops Zombies, BioShock Infinite Array of Bytes
      "People say I'm a bad influence. I say the world's already fucked, I'm just adding to it" -Eminem

    6. #5
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      VDV777's Avatar
      Join Date
      Mar 2013
      Posts
      92
      Thanks (-->)
      38
      Thanks (<--)
      0
      Cheat Engine Tutorials
      Quote Originally Posted by Syperus View Post
      Are you getting any errors when you compile it?
      no , only warnings.

      1>------ Build started: Project: menuHack2, Configuration: Release Win32 ------
      1> D3Dmain.cpp
      1>..\..\..\..\..\Downloads\D3D_Menu\D3Dmain.cpp(14 6): warning C4244: '=' : conversion from 'DWORD' to 'float', possible loss of data
      1> Generating code
      1>c:\users\саша\downloads\menu\d3dmain.cpp(145): warning C4700: uninitialized local variable 'FrameCnt' used
      1>c:\users\саша\downloads\d3d_menu\d3dmain.cpp(147 ): warning C4700: uninitialized local variable 'oldTime' used
      1>c:\users\саша\downloads\d3d_menu\d3dmain.cpp(148 ): warning C4700: uninitialized local variable 'TimeElapsed' used
      1> Finished generating code
      1> menuHack2.vcxproj -> C:\Users\САША\documents\visual studio 2012\one\menuHack2\Release\menuHack2.dll
      ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========



      I need to calculate the FPS and return the value as a buffer. Then just print the value of the buffer.
      The main problem in calculating the FPS. I have no idea about it.
      Last edited by VDV777; 04-25-2013 at 09:43 AM.

    Similar Game Hacker Threads

    1. crash c++/VS 2012
      By VDV777 in forum C/C++
      Replies: 4
      Last Post: 06-28-2013, 06:39 PM
    2. Member of the Quarter [Q4 2012]
      By c5 in forum Member of the Quarter
      Replies: 15
      Last Post: 01-01-2013, 08:06 AM
    3. Anyone using Visual Studio 2012 right now?
      By shuuk in forum Hacking Help
      Replies: 15
      Last Post: 12-07-2012, 01:06 PM
    4. C++ Snake Game Weekend Project 2012.08.26
      By voidisalive in forum C/C++
      Replies: 12
      Last Post: 08-30-2012, 07:47 PM