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 


Change register at breakpoint via LUA too slow

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
sullx
Cheater
Reputation: 0

Joined: 03 Jan 2013
Posts: 37

PostPosted: Sun Sep 14, 2014 2:46 pm    Post subject: Change register at breakpoint via LUA too slow Reply with quote

I implement debugger_onBreakpont() very similar to how DarkByte suggests here: http://forum.cheatengine.org/viewtopic.php?t=532964&sid=07595b22bfc89fe675bfdf419c51e408 and it works as expected. However, this seems to start up the entire CE debugger (stack + register tracing, etc etc), whereas when you just use the CE MemoryViewer GUI and right click>'Change register at this location' and set an address in EIP, it only applies a simple breakpoint and then moves the EIP register to the specified address.

The result is that when I use the former method (with LUA) it is almost an order of magnitude slower, and the game stutters quite noticeably. Is there anyway to make this faster like the manual GUI method?


(on CE 6.4, using VEH debugger)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Sun Sep 14, 2014 3:26 pm    Post subject: Reply with quote

The low level dll plugin system of ce provides an access to that function

Otherwise try a location that isn't accessed a billion times a second

And don't use page exception breakpoints for this

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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