Author Topic: [Release] Vita Moonlight HD  (Read 20045 times)

Offline Graphene

  • Useful Idiot
  • ***
  • Posts: 108
    • View Profile
[Release] Vita Moonlight HD
« on: October 15, 2020, 12:41:38 AM »
Original application here: https://github.com/xyzz/vita-moonlight

Changelog:

New features:

- Added support for native 1920x1080 and 1280x720 resolutions
- Added on screen keyboard support
- Audio stream can now be continued with the screen off
- Audio stream can now be continued with application suspended
- Moonlight stream will now not disconnect when you suspend application
- DS4 touchpad on PSTV will now work in direct input mode (full touchscreen simulation)
- Bluetooth keyboard support
- Touchscreen/touchpad (DS4) input has been reworked. All timeframes have been adjusted. It is now as close as possible to laptop touchpad. You can use following gestures:
     - Drag to move cursor
     - Tap: left mouse button click (recognized on release)
     - First finger hold, second finger tap: right mouse button click (recognized on release of second finger)
     - Tap and hold in one place: enter hold left mouse button mode. After mode is entered, you can freely drag finger to move cursor (recognition stops when finger is released)
     - First finger hold, second finger move: mouse wheel scroll (recognition stops when any of the fingers released)
   
Bugfixes:

- Fixed all issues related to touch input (such as special keys being accidentaly recognized when moving cursor)
- Implemented proper AVC decoder flushing on stream resume
- Various minor optimizations

Details and limitations:
Please read this before asking questions!


1. Requirements for HD resolution modes on normal Vita and PSTV.
     - On normal PS Vita, Sharpscale is required
     - On PSTV there are no special requirements
   
2. Limitations of Vita AVC decoding hardware:
     - AVC decoder is not fast enough to decode 1920x1080@60FPS stream. Please use 1920x1080@30FPS instead
   
3. About new options:
     - Resolution modes:
    960x540, 960x544 -> Vita/PSTV display resolution set to 960x544
    1280x540, 1280x720 -> Vita/PSTV display resolution set to 1280x725
    1920x1080 -> Vita/PSTV display resolution set to 1920x1088
   
    Application restart is required to apply stream resolution settings!
   
     - Enable BGM mode:
    When set to on, system will continue audio stream playback even when application is suspended
    
    Application restart is required to apply this option!
   
     - Disable system suspend
    Disable automatic system suspend feature
   
     - Disable screen dimming
    Disable automatic screen dimming feature

     - Special keys: Open keyboard
    When this special key is pressed, on-screen keyboard will be opened

     - This version does not replace v0.8.0. You will have to do clean reinstall manually.
   
Current issues:

     - UI is not scaled properly in 1280x720 and 1920x1080 modes so it will appear small, especially on normal Vita screen.
   
Coming in the future:

     - Full bluetooth mouse support
   
Path to all Moonlight configuration data has been changed from ux0:data/moonlight to ux0:user/00/savedata/GRVA00010.
You have to open that folder with triangle->open decrypted in Vitashell before doing any manual operations with it.


On normal Vita, Sharpscale is required to use this application.
Unlock framebuffer size option in Sharpscale config app must be set to on

Download: https://github.com/GrapheneCt/vita-moonlight/releases
« Last Edit: November 30, 2020, 11:03:07 PM by Graphene »

Offline Graphene

  • Useful Idiot
  • ***
  • Posts: 108
    • View Profile
Re: [Release] Vita Moonlight HD
« Reply #1 on: October 15, 2020, 08:55:00 PM »
v0.9.1 Changelog:

- Fixed back touchpad mapping issue

Offline Graphene

  • Useful Idiot
  • ***
  • Posts: 108
    • View Profile
Re: [Release] Vita Moonlight HD
« Reply #2 on: November 30, 2020, 11:02:12 PM »
v0.9.2 changelog:

- Use more module libs, less static libs
- Use ScePsp2Compat for some libraries
- Switch to SceLibc where possible
- First boot on normal PS Vita in 960x544 resolution
- Added bluetooth keyboard support
- Improved battery consumption in bg/suspended mode (video decoding deactivates)

Offline Skyy

  • End User
  • *
  • Posts: 6
    • View Profile
Re: [Release] Vita Moonlight HD
« Reply #3 on: December 13, 2020, 01:49:33 PM »
Thanks for the hard work, it's great to see someone still working on this! Moonlight on my Vita is still my primary usage of PC Remote Play!

One question since you made multiple changes to the touch-screen controls, would it be possible to allow Vita Moonlight to have absolute touchscreen inputs like Moonlight has optionally on Android and iOS?

Meaning touching somewhere results in a direct left-click at whatever point you touched. That's the last feature I really miss!

Offline yyyc186

  • End User
  • *
  • Posts: 1
    • View Profile
Re: [Release] Vita Moonlight HD
« Reply #4 on: December 14, 2020, 04:40:23 AM »
Thanks for updating moonlight. I've been working on an issue which occurs when you have a large number of gamestream compatible/steam apps.  For example anything > 200 crashes on connect.

I was able to workaround (aka hack around) the issue by commenting out this:
 if (server_applist != NULL) {
      sort_app_list(server_applist); //sorting alone works but as soon as i count items in the list it fails
     PAPP_LIST list = server_applist;
      while (list) {
      //  while (app_count < bail_count)
       list = list->next;
       vita_debug_log("interating apps: %d\n", app_count2);
       app_count += 1;
      }

and then hardcoding
app_count = 175

and then modifying this section to bail at my hard coded app count

 int bail_count = 1;
      PAPP_LIST list = server_applist;
      while (bail_count <=app_count) {
        MENU_ENTRY(list->id, list->name);
        list = list->next;
        bail_count = bail_count+1;
      }

When I do that then the menu draws and everything works for the first 175 applications only obviously.

I confirmed that my actual app_count is 236 and all of the items are read into using this gs_applist(&server, &server_applist) and the sort method above sorts all 236 of them however it crashes later on.  It isn't clear to me where that later on is exactly. 

I'm happy to help test/try anything to fix.


Offline Graphene

  • Useful Idiot
  • ***
  • Posts: 108
    • View Profile
Re: [Release] Vita Moonlight HD
« Reply #5 on: December 19, 2020, 02:31:15 AM »
It's probably going out of memory somewhere. I'll take a look at it later.