scrcpy/app/src
Romain Vimont e2a272bf99 Improve framerate counting
The FPS counter was called only on new frames, so it could not print
values regularly, especially when there are very few FPS (when the
device surface does not change).

To the extreme, it was never able to display 0 fps.

Add a separate thread to print framerate every second.
2019-06-07 17:16:26 +02:00
..
android Remove AINPUT_SOURCE_ANY value 2018-08-12 15:35:29 +02:00
sys Always use SDL_malloc() and SDL_free() 2019-05-30 22:30:08 +02:00
buffer_util.h Add buffer_read16be() 2019-05-30 22:30:18 +02:00
cbuf.h Add generic circular buffer 2019-05-30 22:30:18 +02:00
command.c Fix comment style 2019-05-31 22:57:12 +02:00
command.h Use consistent variable names 2019-05-31 22:24:17 +02:00
common.h Replace SDL types by C99 standard types 2019-03-02 23:55:23 +01:00
compat.h Disable X11 compositor bypass 2019-05-05 17:35:00 +02:00
control_msg.c Implement device screen off while mirroring 2019-05-31 23:07:23 +02:00
control_msg.h Implement device screen off while mirroring 2019-05-31 23:07:23 +02:00
controller.c Rename "event" to "message" 2019-05-31 16:18:00 +02:00
controller.h Rename "event" to "message" 2019-05-31 16:18:00 +02:00
convert.c Rename "event" to "message" 2019-05-31 16:18:00 +02:00
convert.h Rename "event" to "message" 2019-05-31 16:18:00 +02:00
decoder.c Add more consts 2019-03-03 12:02:41 +01:00
decoder.h Add more consts 2019-03-03 12:02:41 +01:00
device.c Replace SDL types by C99 standard types 2019-03-02 23:55:23 +01:00
device.h Use consistent variable names 2019-05-31 22:24:17 +02:00
device_msg.c Rename "event" to "message" 2019-05-31 16:18:00 +02:00
device_msg.h Rename "event" to "message" 2019-05-31 16:18:00 +02:00
events.h Add stream layer 2019-03-02 18:45:45 +01:00
file_handler.c Use cbuf for file handler request queue 2019-05-30 22:30:18 +02:00
file_handler.h Use cbuf for file handler request queue 2019-05-30 22:30:18 +02:00
fps_counter.c Improve framerate counting 2019-06-07 17:16:26 +02:00
fps_counter.h Improve framerate counting 2019-06-07 17:16:26 +02:00
icon.xpm Add window icon 2018-02-05 14:46:00 +01:00
input_manager.c Improve framerate counting 2019-06-07 17:16:26 +02:00
input_manager.h Explicitly pass control flag to input manager 2019-03-03 11:05:26 +01:00
lock_util.c Add cond_wait_timeout() 2019-06-07 16:54:31 +02:00
lock_util.h Add cond_wait_timeout() 2019-06-07 16:54:31 +02:00
log.h Add log verbose macro 2019-02-09 12:27:13 +01:00
main.c Add runtime option to render expired frames 2019-06-05 21:39:42 +02:00
net.c Use net_close() to close sockets 2019-05-31 23:33:44 +02:00
net.h Replace SDL types by C99 standard types 2019-03-02 23:55:23 +01:00
receiver.c Add clipboard logs 2019-05-31 16:18:00 +02:00
receiver.h Add device event receiver 2019-05-30 22:46:52 +02:00
recorder.c Add more consts 2019-03-03 12:02:41 +01:00
recorder.h Use consistent variable names 2019-05-31 22:24:17 +02:00
scrcpy.c Improve framerate counting 2019-06-07 17:16:26 +02:00
scrcpy.h Add runtime option to render expired frames 2019-06-05 21:39:42 +02:00
screen.c Continue on icon loading failure 2019-05-23 20:58:08 +02:00
screen.h Do not init SDL video subsystem if no display 2019-03-03 01:41:35 +01:00
server.c Disable server controller if --no-control 2019-06-05 00:25:57 +02:00
server.h Disable server controller if --no-control 2019-06-05 00:25:57 +02:00
str_util.c Add helpers to truncate UTF-8 at code points 2019-05-30 22:30:18 +02:00
str_util.h Add helpers to truncate UTF-8 at code points 2019-05-30 22:30:18 +02:00
stream.c Stop stream immediately on quit 2019-05-30 22:30:18 +02:00
stream.h Stop stream immediately on quit 2019-05-30 22:30:18 +02:00
tiny_xpm.c Check surface returned for icon 2019-05-20 09:44:45 +02:00
tiny_xpm.h Update code style 2019-03-02 20:28:46 +01:00
video_buffer.c Improve framerate counting 2019-06-07 17:16:26 +02:00
video_buffer.h Improve framerate counting 2019-06-07 17:16:26 +02:00