mfprogrammer Posted May 17, 2018 Share Posted May 17, 2018 Hi Guys, The scene that I have built, makes the page refresh every now and then on any iPad safari or chrome. On an iPad Air 2, it keeps refreshing itself every now and then. On an iPad pro, it loads, but the moment I use the camera view to look around it dies and refreshes. I am starting to think that this is something to d with the speed/memory on the iPad and the amount it can handle when the camera turns and the processing begins. I have tried debugging it on the iPad by connecting it to a Mac on safari. But as soon as the refresh happens, the dev tools disappear and also, I see no errors there before it refreshes. If I am right, how do I work towards making it lighter for iPads and if I am wrong, what should be my approach? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2018 Share Posted May 17, 2018 Can you check the scene on your desktop? To get any insights on the errors you may have? Quote Link to comment Share on other sites More sharing options...
mfprogrammer Posted May 17, 2018 Author Share Posted May 17, 2018 Yes, I can. It works completely fine on the desktop. No errors that would cause a browser to restart I think. Here is a link to it. configurator Quote Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2018 Share Posted May 17, 2018 Link seems broken Quote Link to comment Share on other sites More sharing options...
mfprogrammer Posted May 17, 2018 Author Share Posted May 17, 2018 21 minutes ago, Deltakosh said: Link seems broken No, It does take me to the right place. Try this one. http://configurator.ibuild.nl/configurator/index.php?projid=%BA3%99%84%DC%02%C1%E5#scene/houses/701/vpoints/view/1652/ Quote Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2018 Share Posted May 17, 2018 Quote Link to comment Share on other sites More sharing options...
mfprogrammer Posted May 18, 2018 Author Share Posted May 18, 2018 8 hours ago, Deltakosh said: This is really weird. This is a server on which it was 6 months ago. I also tried viewing the site with a proxy from US, I am able to see the site. Could you please try flushing your DNS and trying once OR try on a different network. Thanks. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 18, 2018 Share Posted May 18, 2018 I did all of that.. can you try in private? You may have a cookie that let you in Quote Link to comment Share on other sites More sharing options...
mfprogrammer Posted May 18, 2018 Author Share Posted May 18, 2018 I tried it in private as well as the incognito mode. I still see my app. Also, this is being used by people right now. So i am sure it's no cookie. I hope that's what you meant with private. Attached an image with the app in the incognito mode. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted May 18, 2018 Share Posted May 18, 2018 Hi @mfprogrammer Could you try and download google chrome on your ipad and see what happens? I don't know safari, but chrome has a "pause on caught exceptions" option, found under the "Sources" tab in the console.. Perhaps safari has a simular option. Quote Link to comment Share on other sites More sharing options...
mfprogrammer Posted May 21, 2018 Author Share Posted May 21, 2018 @aWeirdo , have tried that too. it still refreshes the page with nothing being caught. The web inspector just closes down when the page refreshes itself. hence, leaving me no way to figure out what is going on. A preserve log does not work either. Also, are you able to see the site? Or you see what Deltakosh sees? @Deltakosh , were you able to view the site? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2018 Share Posted May 21, 2018 Nope still no chance. Even on different computers Quote Link to comment Share on other sites More sharing options...
mfprogrammer Posted May 22, 2018 Author Share Posted May 22, 2018 Ok, I am setting up this project on a different server for a test. once I have it running, I will get back to the forum. Thanks. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
mfprogrammer Posted May 25, 2018 Author Share Posted May 25, 2018 Hi @Deltakosh It took some time, but I have set up the system on a new server. Here is the link. http://206.189.98.14/configurator/index.php?projid=%BA3%99%84%DC%02%C1%E5#scene/houses/772/vpoints/view/1842/ This should lead you to a page like in the image attached. If it does not, it could be that your firewall is blocking the port 8080 that I am using. That serves the meshes etc to the system. On an ipad Air 2, it keeps repeatedly refreshing On an iPad Pro, it refreshes when you try to move around in the scene. You can touch and slide/scroll, it will allow you to scroll on any built screen. I hope you are able to see this. Fingers crossed ? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 25, 2018 Share Posted May 25, 2018 The scene seems to consume a lot of ram (1GB on my edge browser here). this could be the problem. Also I'm seeing some errors on the console. Does it work with a smaller scene? Quote Link to comment Share on other sites More sharing options...
mfprogrammer Posted May 27, 2018 Author Share Posted May 27, 2018 Yes, it works on an iphone too and better than on the ipad. thats the weirdest part Quote Link to comment Share on other sites More sharing options...
Guest Posted May 29, 2018 Share Posted May 29, 2018 The iPhone has a pretty good GPU for sure You need to try to reduce texture size and perhaps reuse material as much as you can to reduce memory footprint Quote Link to comment Share on other sites More sharing options...
mfprogrammer Posted May 30, 2018 Author Share Posted May 30, 2018 Thanks for your input. I cannot reduce texture size since I need the clarity on the desktops. I will also see how to reuse the materials as much as I can. A downgrade in textures would mean an overall downgrade in the quality on all screens. Can we use this http://doc.babylonjs.com/how_to/how_to_use_sceneoptimizer on the iPad and smaller devices? Also, I tried to use it, I see that the Optimizer is being called, but it does not optimize anything really. Whereas, when I switch on the debug and hit the 'Run optimizer' button, it works really great and downgrades the quality. Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted May 30, 2018 Share Posted May 30, 2018 Then you should just pick the code behin "Run optimizer" and use it directly You can also think about having 2 quality levels: one for desktop and one for mobile. Also I suggest trying to call engine.setHardwareScalingLevel(2) on mobiles to reduce resolution and thus memory footprint Quote Link to comment Share on other sites More sharing options...
mfprogrammer Posted June 6, 2018 Author Share Posted June 6, 2018 @Deltakosh: The scaling worked like a charm and I now have 2 versions running for a tab and a desktop. Thanks a ton for your help. I also tried optimizing. I used it with the callback method. I see it optimizing but I do not see any difference in the scene. What is the difference between scaling and optimizer? Cause the "rum optimizer" in the debug and the scaling give same results in the UI. Thanks. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 6, 2018 Share Posted June 6, 2018 Optimizer will do the Scaling plus other tasks. Based on your scene you may not see a big difference if other tasks are touching options not used in your scene Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.