Author Topic: How does the FRAPS hook work?  (Read 1479 times)

illusive

  • Newbie
  • *
  • Posts: 2
How does the FRAPS hook work?
« on: 2016-05-04 07:42:36 »
I've been using LCDSirreal for years now. But I wanted to expand it's capabilities, also I really hate installing GPU-Z- SpeedFan etc. So I decided to make a standalone telemetry screen using a Teensy Developement board an 2.8" TFT. I got most things working natively (CPU loads, Bandwidth usage, CPU and GPU Temps etc) what stumped me is the FPS.

I realized that getting the FPS from shitton of different graphic APIs is pretty hard. So I'll have to use FRAP's fps counter as LCDSirreal does.

I tried to use debugging tools(cheatengine) to get a handle on the variable fraps uses to store the FPS value. Couldn't find it. When I tried to hook LCDSirreal.exe I can easily find the FPS var.

After that, I tried to get the FPS from GeForce Experience. Couldn't find right pointer there either...

So my question is this: Does anyone know how LCDSirreal hooks into FRAPS?

Thanks.

SirReal

  • Administrator
  • Hero Member
  • *****
  • Posts: 735
    • linkdata.se

illusive

  • Newbie
  • *
  • Posts: 2
Re: How does the FRAPS hook work?
« Reply #2 on: 2016-05-13 13:01:59 »
Same way LCDHost does it. See https://github.com/linkdata/LCDHost/blob/18108e259bae5b30d0fd965cf1092471ecff6b69/plugins/LH_Text/LH_TextFraps.cpp

Thank you so much. I've been looking for this for more than a month now. I checked the code, but I'm more of a C# kinda guy, C++ is not really my area. But at least you gave me the general idea about where to look for.

I never thought about looking into the DLL, I was concentrated on extracting the pointer from the Fraps.exe.

Thanks again!

Aminosaka

  • Newbie
  • *
  • Posts: 2
Re: How does the FRAPS hook work?
« Reply #3 on: 2018-01-04 10:37:55 »
It is a good thing and must be told.

Jirayurth

  • Newbie
  • *
  • Posts: 1
Re: How does the FRAPS hook work?
« Reply #4 on: 2018-06-14 04:48:47 »
I have a question about FRAPS hook is offline.





เล่นบาคาร่า
« Last Edit: 2018-06-26 05:25:53 by Jirayurth »

 

anything