How to speed up my engine

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
hgm
Posts: 27795
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: How to speed up my engine

Post by hgm »

lauriet wrote:I have also made my LMR more aggressive by reducing "equal moves" that is moves that get a zero score via the PST.

I'm now getting 10->11 ply which I am happy with for my first engine on pretty modest hardware.
Beware that any depth gain obtained by increasing reductions doesn't necessarily cause a gain in playing strength.
lauriet
Posts: 199
Joined: Sun Nov 03, 2013 9:32 am

Re: How to speed up my engine

Post by lauriet »

After a bit of testing, I find that you are correct.
Probably because my LMR is poor.

'Ah well'......I will keep learning :wink:
tttony
Posts: 268
Joined: Sun Apr 24, 2011 12:33 am

Re: How to speed up my engine

Post by tttony »

I have three advices for you:

1. ASSERT everything
2. ASSERT everything

And last one that is the most important:

3. ASSERT everything

:D

Do you plan to have windows compiles?
Henk
Posts: 7218
Joined: Mon May 27, 2013 10:31 am

Re: How to speed up my engine

Post by Henk »

Asserts only make your code more complicated. Bugs are usually in cases you did not know about. So how can you test conditions you don't know about.
flok

Re: How to speed up my engine

Post by flok »

Henk wrote:Asserts only make your code more complicated. Bugs are usually in cases you did not know about. So how can you test conditions you don't know about.
You're not serious right?
Henk
Posts: 7218
Joined: Mon May 27, 2013 10:31 am

Re: How to speed up my engine

Post by Henk »

I am always serious. Asserts is for (unit) tests and not in other code. Just use the debugger and verify. Don't want to view and debug code that is made more complicated than necessary due to assert statements you already have tested and verified ten times before.
Daniel Anulliero
Posts: 759
Joined: Fri Jan 04, 2013 4:55 pm
Location: Nice

Re: How to speed up my engine

Post by Daniel Anulliero »

flok wrote:
Henk wrote:Asserts only make your code more complicated. Bugs are usually in cases you did not know about. So how can you test conditions you don't know about.
You're not serious right?
Folkert , let him write nonsenses , He's well known a spécialist !

Have a look at fruit source code , it is full of asserts , it is very helpfull :wink:
Bests
Dany
Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: How to speed up my engine

Post by Sven »

Henk wrote:I am always serious.
It just does not seem so.
Henk wrote:Asserts is for (unit) tests and not in other code.
That is plain wrong.
Henk wrote:Just use the debugger and verify. Don't want to view and debug code that is made more complicated than necessary due to assert statements you already have tested and verified ten times before.
ASSERT(false);
Daniel Anulliero
Posts: 759
Joined: Fri Jan 04, 2013 4:55 pm
Location: Nice

Re: How to speed up my engine

Post by Daniel Anulliero »

Sven Schüle wrote:
Henk wrote:Just use the debugger and verify. Don't want to view and debug code that is made more complicated than necessary due to assert statements you already have tested and verified ten times before.
ASSERT(false);
:lol: :lol:
F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: How to speed up my engine

Post by F. Bluemers »

Henk wrote:Asserts only make your code more complicated. Bugs are usually in cases you did not know about. So how can you test conditions you don't know about.
Assert is usefull,but not worth the hype.They are f.i. not so helpfull for single person projects.