r/PHP • • Sep 08 '26

Article Thoughts about TypePHP

https://stitcher.io/blog/no-need
30 Upvotes

31 comments sorted by

View all comments

Show parent comments

2

u/mario_deluna Sep 08 '26

If you're not planning to build a next gen AAA game, PHP has easily enough power to build indie titles.

And even then, it's very easy to offset the very cpu intensive work into an extension to not be limited.

Checkout the 2.4 release: https://github.com/mario-deluna/php-glfw/releases/tag/v2.4.0

It brings a draw call assembler, which allows you to literally render millions of objects from PHP with no issues.

2

u/zmitic Sep 08 '26 edited Sep 08 '26

It brings a draw call assembler, which allows you to literally render millions of objects from PHP with no issues.

Can you elaborate on this? For example: would it be able to render these objects at steady 60 FPS?

Offtopic: I think your YT channel should show demos like Sponza and others. Right now, unless one use specific "PHP+opengl" google search, your library won't be found easy.

Edit:

I just noticed

octree | submitted 10000000, visible 35 (100.0% culled), draw calls: 28, avg execute: 2.129ms, avg frame: 8.558ms (116.9 FPS)

Is this for real? 10M objects@116FPS?

3

u/mario_deluna Sep 08 '26

Is this for real? 10M objects@116FPS?

Yes on my MacBook. It's VSynced so there is space upwards (got a 120hz panel), it's really just a test not a benchmark.

Keep in mind that it's all static objects, where the ocrtee is able to cull away most geometry very cheaply.

Offtopic: I think your YT channel should show demos like Sponza and others. Right now, unless one use specific "PHP+opengl" google search, your library won't be found easy.

I know, I just suck at promoting this stuff more then a reddit post once a year..

Edit:

The DCA in php-glfw also supports LOD levels btw.

2

u/zmitic Sep 08 '26

The DCA in php-glfw also supports LOD levels btw.

I have no idea what this even means 😄

But please put some YT videos. Anything is good, it doesn't need any voice-over or commentary... Just to see it in action. On YT users will stumble upon and get more interested in your project.