Mark Sibly

Forum Replies Created

Viewing 15 posts - 691 through 705 (of 1,431 total)
  • Author
    Posts
  • in reply to: Module 3d Monkey 2 is free? #9013

    Mark Sibly
    Keymaster

    in reply to: cpp Math #9009

    Mark Sibly
    Keymaster

    Quite understand!

    I am actually only aiming for ‘useful c++ support’. Full c++ support would be impossible without duplicating all of c++’s features (and quirks). But there’s enough in there to be able to use bullet, litehtml, libtheora etc. from monkey2 which is what I was aiming for.

    Will update docs too to at least mention what you can’t do with extern.

    in reply to: V1.105 SDL commands flooding console #9007

    Mark Sibly
    Keymaster

    Ok, there are some Print’s in modules/mojo/input.monkey2 that I’ll remove.

    Just cursious, but do you have mobile going?

    in reply to: check for monkey2 version? #9006

    Mark Sibly
    Keymaster

    Not yet, preprocessor doesn’t handle ints, <, > etc yet so it’s probably not much use.

    in reply to: V1.105 SDL commands flooding console #9005

    Mark Sibly
    Keymaster

    What banana can I run to reproduce?

    What host/target?

    in reply to: Close New v1.1.05 #9003

    Mark Sibly
    Keymaster

    type Self. and just as soon as you hit the ., the IDE closes.

    I believe there’s a fix for this in the works, in the meantime try turning off autocomplete in the file->preferences page.

    Is this the same problem though? The first post did not mention having to type anything.

    in reply to: Posting to the code archive error #9002

    Mark Sibly
    Keymaster

    This can happen when you post code that the server incorrectly identifies as malicious.

    I need to contact support to get this fixed which I’ll get around to eventually.

    in reply to: cpp Math #9000

    Mark Sibly
    Keymaster

    There is no way to extern operators.

    Monkey2 is not a cpp ‘translator’ or emulator, it is its own language that generates simplified c++ behind the scenes.

    It does not support all c++ functionality and there are many things you can do in c++ that you cannot do in monkey2.

    Why not just stick with c++? What are you hoping to gain by wrapping highly specialized c++ code in monkey2?

    in reply to: cpp Math #8977

    Mark Sibly
    Keymaster

    You will have to write a monkey ‘extern wrapper’ for it, or you could try using std.geom.Vec3f.

    in reply to: Close New v1.1.05 #8972

    Mark Sibly
    Keymaster

    What platform, OS etc?

    Anyone else?

    in reply to: Slower graphics (Emscripten/Wasm) with v1.1.05 #8971

    Mark Sibly
    Keymaster

    I think I may have found it!

    As far as I can tell, glGetError() is VERY slow on Chrome. Perhaps it’s doing an internal flush or something?

    Anyway, you can verify this by sticking a ‘Return’ at the top of the glCheck function in modules/mojo/graphics/glutil.monkey2 and rebuilding modules for emscripten etc.

    Plese let me know if this fixes it. This may be worth a 1.1.05b release as it’ll affect 3d stuff too…

    (…that’ll teach me to ‘code defensively’!)

    in reply to: Slower graphics (Emscripten/Wasm) with v1.1.05 #8970

    Mark Sibly
    Keymaster

    Unrelated, but another thing I recommend is using ‘TextureFlags.Dynamic’ when creating textures that are being constantly rendered to, eg: if you’re rendering frames off screen, eg: image=New Image( w,h,TextureFlags.Dynamic ).

    This tells monkey2 not to bother ‘backing up’ the texture after you’ve modified it in case of a ‘lost device’ event, eg: Alt-Tab, display mode change etc. Backing up after modification is slow, and there’s no point backing it up if you’re just gonna redraw it again next frame.

    Wont affect the above little demo, but could affect Civ.

    in reply to: Slower graphics (Emscripten/Wasm) with v1.1.05 #8968

    Mark Sibly
    Keymaster

    Ok, I can reproduce now and it appears to be Chrome related.

    Can you try ‘firefox nightly’ instead? The above little demo actually goes a bit faster in V1.1.05 with nightly for me (and using WASM) – but I can confirm very slow performance with Chrome.

    Firefox nightly is my default browser of choice for dev work as it’s usually the first to support any fancy new fangled features and seems to offer the best performance with webgl, wasm etc. I should probably test more often with Chrome though, as it’s now the IE of the tenties…

    Will keep looking into this though – could just be something I’m doing slightly differently is ‘trigerring’ crap performance on Chrome.

    in reply to: String.To Chars queston #8966

    Mark Sibly
    Keymaster

    Strings in monkey2 are ‘immutable’: they cannot be modified. To do what you’re trying to do you’ll need to build a new string.

    in reply to: Slower graphics (Emscripten/Wasm) with v1.1.05 #8965

    Mark Sibly
    Keymaster

    Just looking into this now…

    The actually canvas drawing code hasn’t changed, but the ‘render to texture’ system has so I’ll start there…

Viewing 15 posts - 691 through 705 (of 1,431 total)