Forum Replies Created
-
AuthorPosts
-
There is a bit of a discussion here about structs and memory allocation which Vec is:
http://monkey2.monkey-x.com/forums/topic/collision-module-and-performance
So it might be ok?
I could also change it to create the Vec2f on creation of the object and update X,Y before returning rather than generating a new one each call.
[Update: Ran it both ways for 10mins and the Memory Manager crept up a couple of meg at the start and was stable after that – so no real issue by the looks.]
Thanks.
Nice!
Haha! Needs the flashing loader! Miss lots of stuff from the good old days but not that one.
Is that a Pi 3 Simon?
Why not! Thanks!
Debugger will be great! Thanks for the update.
Ok – thanks Mark!
Thanks for your response – yeah would be a nice to have! But no probs.
C# has a similar option using both this (Self) and base (Super):
Monkey12345678910class Sprite {public Sprite(float x, float y) : this(x, y, 3){}public Sprite(float x, float y, int lives){}}Ah – see that now! Doh! Thanks Mark!
June 9, 2016 at 4:03 am in reply to: mx2cc crashing because of print command. Am i doing something stupid or? #997Woops! Too much c# for me ATM! Trying to find some time to have a play – work and family a bit busy currently!
Great to see you too buddy! Hope all well in your part of the world!
Sorry how do we do the code snippets?
Found it – need to go into the Text option and click Crayon.
June 8, 2016 at 10:24 am in reply to: mx2cc crashing because of print command. Am i doing something stupid or? #980Wiebo,
When your initialising your Singleton your also not storing your initialised instance:
Monkey1If Not _instance Then Return New EntityManagershould be
Monkey1If Not _instance Then _instance = New EntityManagerSo in this instance the object may be Null anyway causing the exception.
Thanks Mark – will take a look!
-
AuthorPosts