inexorgame-obsolete / deprecated-cube-engine-inexor

UNMAINTAINED: Please have a look at the vulkan-renderer
https://inexor.org
zlib License
11 stars 1 forks source link

fix(rpc): use micro sleeps for limit cpu usage #439

Closed aschaeffer closed 7 years ago

aschaeffer commented 7 years ago

Fixes #412

a-teammate commented 7 years ago

Could you try whether it fixes #412 also if you just use the blocking polling API?

Changing

CompletionQueue::NextStatus stat = cq->AsyncNext((void **)(&callback_value), &no_internal_grpc_error, gpr_inf_past(GPR_CLOCK_REALTIME));

in the function block_until_initialized() https://github.com/inexorgame/inexor-core/blob/master/inexor/rpc/RpcServer.hpp#L368 to

CompletionQueue::NextStatus stat = cq->Next((void **)(&callback_value), &no_internal_grpc_error);

?

aschaeffer commented 7 years ago

Yes, it works.