Pun 2 - Early Access [May 2018]

Hello Everyone,

We are updating our early access package of the upcoming PUN version (will be referred as PUN 2).
This features major internal changes, API changes, performance and optimization improvements but keeps the same design pattern you know and expect from Photon Unity Networking (PhotonViews, RPC, Cloud, etc).

Download it here:

https://www.dropbox.com/s/swlyi2gfzycy7us/PUN-v2ea2-EarlyAccess-May18.unitypackage?dl=1

Few things to know:

- This version is NOT READY FOR PRODUCTION, use it at your own risk.
- Unity 5.3.7p4 is the minimal version

Known Issues:

- The Demo Hub is not loading the "Realtime Demo". It does run when loaded directly.

New Features:

- New, cleaner folder structure. A "Photon" folder wraps up everything and there is a folder per Photon product or API.
- New Demos.
- Improved Namespace to avoid clash with other assets.
- LoadBalancing (LB) api has been revamped for a better separation between PUN and LB
- The PUN API changed in numerous place
- Performance and optimization is improved with less caching of data and better memory usage to avoid unnecessary allocations where possible.
- Explicit registration for PUN callbacks is now necessary, although automated when using 'PunBehaviour' ( watch out when overriding OnEnable() and OnDisable() you must call the base or registration will not occur
- Demos now using the Unity UI system instead of the deprecated one which had a very design pattern for coding.
Future Features:
- Documentation overall pass to cover all changes and new features
- Completed Demos
- Network Prefab will no longer be required as a Resource but will need explicit registration
- More optimizations and performances improvements

We welcome your feedback on this :)
Simply post in this thread.

Comments

  • Hi @S_Oliver,

    both PUN and PUN 2 support async scene loading. For PUN we added this feature with the currently latest version 1.90. In PUN 2 it is available in the version above.

    From the changelog:

    Added: PhotonNetwork.LoadLevelAsync() with LoadSceneMode.single mode support only (LoadSceneMode.additive async loading requires keeping track of all loadings)
  • How easy will it be to upgrade your existing project with PUN to PUN2?
    When would PUN2 be ready for general use?
  • Hi @Icezman,

    How easy will it be to upgrade your existing project with PUN to PUN2?


    This will require some effort but it won't take forever. You basically would have to remove the content from PUN and insert the content of PUN 2 instead, because it has a new folder structure. Afterwards you might have to replace some API calls. This however shouldn't be an insolvable task.

    When would PUN2 be ready for general use?


    We don't have an ETA.
Sign In or Register to comment.