Mattias Hagstrand

Results 28 comments of Mattias Hagstrand

I like this a lot! 👍 Absolutely agree that consistent API is more important than a little code duplication. I'll start a new PR then?

Got it! I was actually thinking about that yesterday that it would be nice to have some performance tests. There is something built in to XCTest but I have never...

I just created a test app that puts 1000 actors on the screen and they all have a rotate action: `actor.repeat(RotateAction(delta: 3.15, duration: 1))` When I profile on my iPhone...

@JohnSundell Excellent work with the performance improvements! 👏 Now I just have to make sure I don't make it worse again when I extract collision detection... 🙈

Started looking at this and have defined a Collidable protocol like this: ```swift internal protocol Collidable { associatedtype Events: EventCollection where Events: CollidableEventCollection var events: Events { get } ///...

I suspected it had something to do with a circular reference. Would have been helpful with a error messages instead of segmentation fault... 🙄 Yeah, making `CollidableEventCollection` a class should...

@JohnSundell This is the closest I've gotten to a working solution. `Collidable` is now defined like this: ```swift /// Protocol adopted by objects that can collide with other objects public...