cpp-io2d / P0267_RefImpl

Reference Implementations of P0267, the proposed 2D graphics API for ISO C++
Other
313 stars 114 forks source link

ubuntu: Idle program/window (using Cairo) uses up 100% CPU! #116

Open mprostock opened 5 years ago

mprostock commented 5 years ago

running the OSM Map example on ubuntu opens a window with the example map. While the window is open the program uses up 100% CPU on the core it is running on. This seems to be due to this loop in begin_show():

https://github.com/cpp-io2d/P0267_RefImpl/blob/master/P0267_RefImpl/P0267_RefImpl/cairo/xlib/xio2d_cairo_xlib_output_surfaces.h#L181 This is a complete waste of resources/energy...