projects
/
platform
/
upstream
/
SDL.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2f6896a
)
[SDL_Tizen] Reduce CPU usage
65/127365/2
author
huiyu.eun
<huiyu.eun@samsung.com>
Thu, 27 Apr 2017 05:44:52 +0000
(14:44 +0900)
committer
huiyu.eun
<huiyu.eun@samsung.com>
Thu, 27 Apr 2017 06:37:49 +0000
(15:37 +0900)
Add usleep(0) at Tizen_PumpEvents();
Change-Id: I83e5e0093563c51ed19827a41fe4a28caafb623f
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/video/tizen/SDL_tizenevents.c
patch
|
blob
|
history
diff --git
a/src/video/tizen/SDL_tizenevents.c
b/src/video/tizen/SDL_tizenevents.c
index
69160e9
..
2412724
100755
(executable)
--- a/
src/video/tizen/SDL_tizenevents.c
+++ b/
src/video/tizen/SDL_tizenevents.c
@@
-24,6
+24,7
@@
#if SDL_VIDEO_DRIVER_TIZEN
+#include <unistd.h>
#include "SDL_stdinc.h"
#include "SDL_assert.h"
#include "SDL_log.h"
@@
-56,6
+57,7
@@
void
Tizen_PumpEvents(_THIS)
{
ecore_main_loop_iterate_may_block(0);
+ usleep(0);
}
Ecore_IMF_Keyboard_Modifiers EcoreInputModifierToEcoreIMFModifier(unsigned int ecoreModifier)