Finally getting some work done after a long break
So last time I was working on Morpheus (now almost 3 months ago ๐ I rewrote the canvas renderer to render all scenes in a single canvas rather that one scene per canvas and multiple canvases stacked on top of each other. For a quick refresher, each canvas is a full screen copy of the screen in memory and there can be as many 7 scenes active at once. This means there are 7 copies of entire screen being held in memory, plus all of the source assets. So obviously if we can draw everything on a single canvas always then we save a lot in memory.
However, that code only worked for the 2d scenes and movies, but not for the panoramas, which are drawn in WebGL. So last weekend and now I am working on accomplishing the same task for the 3D scenes namely only use a single WebGL scene for all scenes. I also plan on bringing in the prior work and rendering the 2D scenes in WebGL as well so that when all finished there will be a single WebGL scene for the game.
These changes should drastically reduce the memory footprint of the game which is a problem I believe that was keeping the game from working on iOS devices. In addition, since everything is being rendered in a single scene the bugs I was having where assets were being shared across multiple scenes should be fixable because I will always have access to all assets used everywhere during rendering rather than when I was rendering each scene separately. I haven't exactly fixes those problems, but I do already have code that tracks when assets are being used by multiple scenes.
Get Morpheus
Morpheus
1998 Sopabubble Productions Morpheus as a web game
Status | In development |
Author | soapbubble |
Genre | Adventure |
Tags | Atmospheric, Dark, FMV, Mystery, panorama, Point & Click, Singleplayer, Spooky, Steampunk |
Languages | English |
More posts
- [Dusts off morpheus]Jan 18, 2021
- COVID-19 UPDATEApr 14, 2020
- Development UpdateFeb 03, 2020
- Development UpdateDec 21, 2019
- Firebase migration completeSep 16, 2019
- soapbubble.online migration to FirebaseSep 15, 2019
- The local save versionAug 04, 2019
- v1.12 releasedJun 12, 2019
- v1.8 ReleasedJan 28, 2019
Comments
Log in with itch.io to leave a comment.
Happy Holidays to you and yours.... Keep everything going.......