Skip to content

run.sh makes two launch processes? #6

@geniot

Description

@geniot

Do you know why there are two launchers used: sh and bash?

ark@rg351mp:/roms/native$ ps aux | grep hello-sdl2.exec
ark      18587  0.0  0.0   2048   524 ?        S    14:05   0:00 sh -c /roms/native/run.sh /roms/native/hello-sdl2.exec
ark      18588  1.2  0.3   6464  2824 ?        S    14:05   0:00 bash /roms/native/run.sh /roms/native/hello-sdl2.exec
ark      18705 26.0  3.3 364656 30944 ?        Sl   14:05   0:00 /roms/native/hello-sdl2.exec
ark      19531  0.0  0.0   7684   656 pts/1    S+   14:05   0:00 grep --color=auto hello-sdl2.exec

Also the CPU seems to be overused. You use SDL_RenderPresent but I haven't found anywhere that you use SDL_HINT_RENDER_VSYNC.

Am I wrong here? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions