rho's Recent Forum Activity

  • Still checking for NaN would be useful. I encountered a similar scenario where I was looking for a number from a browser string and it wasn't being reported. That's not a bug or anything, the browser string was empty... but the result was NaN and there was no convenient way to test for it.

    R

  • TiAm, I am curious, MS said that they are going to support ORTC and I know this is an evolution of WEBRTC is some way that both google and Microsoft support, but I don't know anything more than that.

    does anyone know anything more about ORTC and how it impacts on webrtc and C2?

    PS: it's nice to see MS spot an issue in an open standard and also nice to see that google was willing to allow the changes be incorporated.

  • one way to do it would be to create a global variable (eg POPUP_ACTIVE) that disables the buttons if set.. so when your popup appears, set this value to 1 (for example) and then use the following conditions. When the popup is disabled, set the variable back to zero

    if OBJECT clicked

    if POPUP_ACTIVE not equal to 1

    <do what you want now>

    that way if they are clicked, you won't do anything.

  • thanks Ashley, Aphrodite,

    so I accept that webgl runs faster than it used.. I got around 6K objects for 30 fps on my laptop..

    but I thought canvas2d and webgl performance was also strongly dependent on browser performance as well... so I was wondering whether that aspect has changed.

    definitely not using webgl is a bad thing if you are using the chrome engine, so android apps definitely must use webgl. I was wondering about other use cases.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi all, I hope you can help..

    Ashley in a blog several years ago posted a detailed discussion of canvas2d vs webgl, claiming webgl was fast and on chrome, much faster than canvas2d. He presented two test cases (links below) which he said would allow for this to be tested.

    https://www.scirra.com/blog/58/html5-2d ... e-analysis

    https://www.scirra.com/labs/perftest-2d

    https://www.scirra.com/labs/perftest-webgl

    now out of curiosity I ran these again as I was curious about IE11 performance. I also tested it on chrome 37, firefox .

    I am using a laptop which has in-built intel graphics so nothing special. what I got for the two tests were

    IE11: 30 FPS 8471 for canvas2D, and 2971 for webgl

    CHROME: 30 FPS 1351 for canvas2D, and 3150 for webgl

    FIREFOX: 30 FPS 13385 for canvas2D, and 3140 for webgl

    so I know that there are many many things that could be skewing the results, but which is best to use for performance... assuming that you are not using any fancy webgl effects?

    R

  • So my pet project is an MMO game so I've gone through these questions, again multi-part answer

    1) what is your game type... is it evony/Sparta/ogame/domination type thing where the updates are periodic and can be done per second or on demand? ... or is it a league of legends/WOW type game where you need updates on the order of 10-15 times per second.. a huge difference in the bandwidth requirements

    2) I've gone for a server-client architecture with the server being developed in perl (just because I know it) and MySQL. The client is being developed in C2

    So in an event-driven game, a basic server and hosting facility, I've estimated I can handle 1000 concurrent users in a persistent universe. the biggest bottleneck will be bandwidth but probably not where you were expecting.. I've optimised updates so they are small... but if a 1000 users download a 5 MB file every time they play.. I would be hitting 5GB/day which is beginning to get expensive.

    i'd hate to imagine the bandwidth requirements for a realtime mutli-object synced system, but I think the biggest issue would be ensuring that your host has sufficient uplink capacity... if you are using ADSL (A=assymetric) the uplink connection is a poor relation to the downlink and depending on your ISP's policies, it can suffer from laggy behaviour and pausing. this is the reason why most home links can't support decent server performance.

    so C2 can be usefully used, but you'll have to pick your game type correctly.

    3)

  • so on a dell laptop e6430, rather than talking about specs, I tried the 3 browsers (all up to date) for a comparison.

    IE11: 62 FPS, 50-60% CPU when moving, about 40% CPU when stationary

    FIREFOX: 40 FPS, 50-60% CPU, about 40% when stationary

    CHROME: 40 FPS, 40% CPU, about 20% when stationary

    so I had a few other things running in the background that might have limited max CPU.

    nice demo project

  • Naji

    to answer one of your other questions...

    dropbox is not considered as a "server" with respect to things like PHP. dropbox can share files out, but it does not provide you with an ability to run programmes on it.. php running server-side with MySQL requires something like Azure/Amazon or similar service, or a dedicated machine.

  • Interesting, I've never exported JSON from C2, though I am a regular user of IE11. So to simplify your query, the problem line is...

    function 15: "download as JSON data with filename "questionPool.json"

    so I ran your capx and the file I was asked to download was the following. So I hate looking and converting all of this crap to normal text, but to me it seems like this is the correct json file but IE11 is trying to open it with an app, and when it can't, it's trying to parse it as a weblink and failing. If I configured an app to view this, I think it'd behave the same as FIREFOX. Chrome and Firefox see this and interpret it as json and hence you don't see the headers as they strip them out. So I suspect if you could get rid of all the hex encoded text you'd get the file that you wanted.

    JSON is built in IE11 but apparently there are some issues on how the file is configured to ensure it is handled correctly. So it is an issue with IE11 and not C2, and there are fixes for IE11 for this available or so a quick google search suggests.

    you wanted to get

    {"c2array":true,"size":[1,6,3],"data":[[[0,"false","true"],["true",0,"1.1"],[0,0,0],[0,0,0],[0,0,0],[0,0,0]]]}

    and you got

    data:text/html,%3Cp%3E%3Ca%20download%3D'questionPool.json'%20href%3D%22data%3Aapplication%2Fjson%2C%257B%2522c2array%2522%253Atrue%252C%2522size%2522%253A%255B1%252C6%252C3%255D%252C%2522data%2522%253A%255B%255B%255B0%252C%2522false%2522%252C%2522true%2522%255D%252C%255B%2522true%2522%252C0%252C%25221.1%2522%255D%252C%255B0%252C0%252C0%255D%252C%255B0%252C0%252C0%255D%252C%255B0%252C0%252C0%255D%252C%255B0%252C0%252C0%255D%255D%255D%257D%22%3EDownload%20link%3C%2Fa%3E%3C%2Fp%3E

  • Ize a beautiful but wonderful solution, thanks

  • not on a text object, but if you set the text on a textbox, then copy/paste works as per normal... not a perfect solution but the best I've found.

  • I love this and tried to a scorched earth variant too.

    if it's not a trade secret, how do you create the destroyable buildings?

rho's avatar

rho

Member since 5 Aug, 2013

None one is following rho yet!

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies