Live data from Hacker News

Castle Game Engine: Web target – big progress, first 3 demos to try

castle-engine.io

21–27 of 27 posts

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#21

Interesting that it is written in Pascal: https://github.com/castle-engine/castle-engine The minimal demos are still surprisingly big though (same ballpark as Unity web builds for similar simple demos). For a language without runtime I would expect a couple hundred kilobytes at most for those simple demos (but the download is 6.4 MB compressed and decompresses to 43 MByte, and takes significant time after the downloa…

Object Pascal has a substantial runtime library called RTL: https://en.m.wikipedia.org/wiki/Free_Pascal_Runtime_Library

Also per azakai in another thread, wasm-opt shrinks this binary to 14 MB. Still a lot.

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#22

Cool. I love to see progress for any new engine.

How new is this engine? It was renamed to "Castle Game Engine" (from "Kambi VRML Game Engine") in 2011. Version 1.0.0 was released in 2007. Not sure if there were even older releases?

https://castle-engine.io/old_news.php?id=2011-8-22-engine_re...

https://sourceforge.net/projects/vrmlengine/files/kambi_vrml...

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#23
post #17

Earlier quoted context omitted.

We evaluated Cocos about 2 years ago and frankly when comparing it to Unity on one side and small and specialized web engines like PixiJS, Three.js, PlayCanvas or Babylon.js on the other side, it's just not all that great, starting from tooling and ending with the engine architecture.

What did you end up using for the web?

PixiJS

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#24
post #21

Interesting that it is written in Pascal: https://github.com/castle-engine/castle-engine The minimal demos are still surprisingly big though (same ballpark as Unity web builds for similar simple demos). For a language without runtime I would expect a couple hundred kilobytes at most for those simple demos (but the download is 6.4 MB compressed and decompresses to 43 MByte, and takes significant time after the downloa…

Object Pascal has a substantial runtime library called RTL: https://en.m.wikipedia.org/wiki/Free_Pascal_Runtime_Library Also per azakai in another thread, wasm-opt shrinks this binary to 14 MB. Still a lot.

Similar to this unofficial C runtime called POSIX, that most C applications rely on.

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#25

Interesting that it is written in Pascal: https://github.com/castle-engine/castle-engine The minimal demos are still surprisingly big though (same ballpark as Unity web builds for similar simple demos). For a language without runtime I would expect a couple hundred kilobytes at most for those simple demos (but the download is 6.4 MB compressed and decompresses to 43 MByte, and takes significant time after the downloa…

Pascal can definitely produce small binaries (and it looks like it does dead code elimination, under the name “smartlinking” [0]), so it may be a limitation of the WASM backend like you said or not enabled for some reason.

[0]: https://www.freepascal.org/docs-html/user/userse13.html

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#26
post #21

Interesting that it is written in Pascal: https://github.com/castle-engine/castle-engine The minimal demos are still surprisingly big though (same ballpark as Unity web builds for similar simple demos). For a language without runtime I would expect a couple hundred kilobytes at most for those simple demos (but the download is 6.4 MB compressed and decompresses to 43 MByte, and takes significant time after the downloa…

Object Pascal has a substantial runtime library called RTL: https://en.m.wikipedia.org/wiki/Free_Pascal_Runtime_Library Also per azakai in another thread, wasm-opt shrinks this binary to 14 MB. Still a lot.

Using RTL doesn’t necessarily result in large binaries. In my (non-WASM) experience, they’re more in line with the “hundreds of kilobytes” flohofwoe suggests.

Re: Castle Game Engine: Web target – big progress, first 3 demos to try

#27

Cool. I love to see progress for any new engine.

How new is this engine? It was renamed to "Castle Game Engine" (from "Kambi VRML Game Engine") in 2011. Version 1.0.0 was released in 2007. Not sure if there were even older releases? https://castle-engine.io/old_news.php?id=2011-8-22-engine_re... https://sourceforge.net/projects/vrmlengine/files/kambi_vrml...

Well, it's new to me.
Post reply on HN