mirror of
https://github.com/Maschell/StreamingPluginWiiU.git
synced 2024-11-24 13:49:21 +01:00
Try to stream every frame instead of only every 4th
This commit is contained in:
parent
034f85b398
commit
2f00c98562
@ -10,8 +10,8 @@ uint32_t count = 0;
|
|||||||
|
|
||||||
DECL_FUNCTION(void, GX2CopyColorBufferToScanBuffer, const GX2ColorBuffer *colorBuffer, int32_t scan_target) {
|
DECL_FUNCTION(void, GX2CopyColorBufferToScanBuffer, const GX2ColorBuffer *colorBuffer, int32_t scan_target) {
|
||||||
if(gAppStatus == WUPS_APP_STATUS_FOREGROUND) {
|
if(gAppStatus == WUPS_APP_STATUS_FOREGROUND) {
|
||||||
// Stream every 4th frame of the Gamepad (targetting 20fps)
|
|
||||||
if(scan_target == 4 && (count++ % 4 == 0) && colorBuffer != NULL ) {
|
if(scan_target == 4 /*&& (count++ % 4 == 0)*/ && colorBuffer != NULL ) {
|
||||||
count = 0;
|
count = 0;
|
||||||
streamVideo((GX2ColorBuffer *)colorBuffer);
|
streamVideo((GX2ColorBuffer *)colorBuffer);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user