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 


Simple question to Cheat Engine's devs

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

Joined: 19 Aug 2016
Posts: 10

PostPosted: Sat Sep 03, 2016 7:58 pm    Post subject: Simple question to Cheat Engine's devs Reply with quote

Do you guys implement parallel on the scan inside a region or while getting all the regions?

PARALLEL [ Get { Regions : Scan(Region) } ]

or

PARALLEL [ Scan(Region) ] ?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Sep 03, 2016 8:58 pm    Post subject: Reply with quote

I first get all the regions using a single thread and then divide the amount of data over the number of CPU's (The worker threads do the reading API call as well)
_________________
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
Adversities
Newbie cheater
Reputation: 0

Joined: 19 Aug 2016
Posts: 10

PostPosted: Sat Sep 03, 2016 9:09 pm    Post subject: Reply with quote

Thanks you dude Smile
Back to top
View user's profile Send private message
Adversities
Newbie cheater
Reputation: 0

Joined: 19 Aug 2016
Posts: 10

PostPosted: Sun Sep 04, 2016 3:19 pm    Post subject: Reply with quote

Dark Byte wrote:
I first get all the regions using a single thread and then divide the amount of data over the number of CPU's (The worker threads do the reading API call as well)


Hey Dark Byte, it's me again x) i've aplied multithreading for scans but it seems like it isn't in the correct way...

When you exactly apply parallel? it's not like when there're over 1k regions or something like that? bcoz when i apply parallel for all the cases it's a bit slower than non-parallel.

Do you can guide me in how exactly i should apply parallel to scans?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Sep 04, 2016 5:22 pm    Post subject: Reply with quote

don't use any locking operation in your workerthread during the scan (e.g. don't add all results to the same memoryblock)
_________________
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
Adversities
Newbie cheater
Reputation: 0

Joined: 19 Aug 2016
Posts: 10

PostPosted: Sun Sep 04, 2016 6:03 pm    Post subject: Reply with quote

Aightt! now we've the same speed scan, thanks you so much <3
Back to top
View user's profile Send private message
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