How to speed up my engine

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
hgm
Posts: 25820
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: How to speed up my engine

Post by hgm » Sun May 15, 2016 12:45 pm

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: 198
Joined: Sun Nov 03, 2013 8:32 am
Contact:

Re: How to speed up my engine

Post by lauriet » Tue May 17, 2016 2:16 am

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: 264
Joined: Sat Apr 23, 2011 10:33 pm
Contact:

Re: How to speed up my engine

Post by tttony » Tue May 17, 2016 2:29 am

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: 6764
Joined: Mon May 27, 2013 8:31 am

Re: How to speed up my engine

Post by Henk » Tue May 17, 2016 7:16 am

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 » Tue May 17, 2016 8:41 am

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: 6764
Joined: Mon May 27, 2013 8:31 am

Re: How to speed up my engine

Post by Henk » Tue May 17, 2016 10:37 am

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: 734
Joined: Fri Jan 04, 2013 3:55 pm
Location: Nice

Re: How to speed up my engine

Post by Daniel Anulliero » Tue May 17, 2016 11:26 am

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: 3948
Joined: Thu May 15, 2008 7:57 pm
Location: Berlin, Germany
Full name: Sven Schüle
Contact:

Re: How to speed up my engine

Post by Sven » Tue May 17, 2016 4:38 pm

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: 734
Joined: Fri Jan 04, 2013 3:55 pm
Location: Nice

Re: How to speed up my engine

Post by Daniel Anulliero » Tue May 17, 2016 5:11 pm

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: 867
Joined: Thu Mar 09, 2006 10:21 pm
Location: Nederland
Contact:

Re: How to speed up my engine

Post by F. Bluemers » Tue May 17, 2016 5:12 pm

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.

Post Reply