Skip to content

cpu power use dampner :) #2

@netpipe

Description

@netpipe

include <unistd.h>

put usleep in the frame loop of cl_main.c might be needed in server aswell. a little bit of a delay helps with overall cpu usage on multicore systems and laptops without sacrificing performance. taskset -c 0 ./reaction helps too but delay is better

void CL_Frame ( int msec ) {
usleep(1*1000);

also this release really rocks feels like the oldschool dirty quake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions