Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C# ReadProcessMemory() Slow/Lagged compared to CheatEngine

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Guest8525
Cheater
Reputation: 0

Joined: 25 May 2011
Posts: 34

PostPosted: Sat Dec 06, 2014 11:21 pm    Post subject: C# ReadProcessMemory() Slow/Lagged compared to CheatEngine Reply with quote

I have made a hack in C# that monitors a memory address that ranges from -10 to around 0. It starts at -10 (float) and when I have the hack simulate a key press it holds the key until the value at the address is less than or at 0 and at that point it performs an operation. The problem is when I use it there is a latency issue which causes this value to be significantly off by 200 to 300 milliseconds and when I use ReadProcessMemory() it does not account for the latency or is effected by it and so the value is wrong but I also use cheatengine to monitor this address which does compensates or doesn't seem to be effected by the latency. For instance if the true value cheatengine reads is 0.240 my hack using ReadProcessMemory() reads it as 0 so it ends up releasing the key much later than I want. If it were reading the address the same way as cheatengine there would be no issue. This address and value refers to an on screen visual indicator.

How do I achieve the same value reading as cheat engine or is there a way to incorporate cheat engine with my hack, maybe cheat engine provides the value to my hack or something. Any help is appreciated.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Dec 07, 2014 12:23 am    Post subject: Reply with quote

You need to show the code you have so far for us to make any assumptions based on what you've done already.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites