If I have question on Nel sample, where to ask?

Added by gnuser over 4 years ago

Is this site needs authorization?

http://dev.ryzom.com/projects/nel/boards

I am learning Nel net library, and just compile the chat server and client in linux to test, I see the client takes over 100% of CPU, should I need sleep to release CPU?

Enviroment:
Linux ubuntu 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)


Replies (3)

RE: If I have question on Nel sample, where to ask? - Added by sfb over 4 years ago

gnuser,

The 'nel' project is closed as the Ryzom Core project encompasses all of it now. Feel free to post on this board with questions.

The chat client has an uninhibited main loop so it has a tendency to use a lot of CPU, but since it's not doing anything it typically doesn't hinder other applications. What you can do if you want it to not take 100% of the CPU is add an nlSleep call.

Thanks,
sfb
/s

RE: If I have question on Nel sample, where to ask? - Added by kervala over 4 years ago

NeL is a part of Ryzom Core now so you can ask there :) The NeL project was removed.

To sleep your CPU, you can use : Sleep = x; in client.cfg where x is the duration in ms of a sleep added after each frame. On my PC, 10 is working almost fine.

RE: If I have question on Nel sample, where to ask? - Added by gnuser over 4 years ago

sfb,
I have found nlSleep call from common.cpp. Thanks.

kervala,
I have used config file to set dynamic sleep time, it's useful. Thanks again.

I will do more learning on nel and ryzom, and I really like here for kind of you.

(1-3/3)