TheExDeus
|
|
Reply #15 Posted on: September 18, 2014, 06:43:39 am |
|
|
Joined: Apr 2008
Posts: 1860
|
In terms of FPS, it probably would be 0. Could depend on the hardware, because on older PC's rendering to FBO is a little slower than rendering on main framebuffer directly. But on any decent hardware there should be 0 difference in performance. You can actually try it yourself by drawing on a surface and then drawing the surface on the screen. I just tried on my very old laptop with ATI card, and when I draw 10000 objects with sprites, I get 7fps without surfaces, and 7fps when drawing on a surface. If I draw 1000 object with sprites, I get 71fps without surfaces, and 68fps when drawing with surfaces. As I said, the difference is negligible. The only performance hit I can imagine is switching between render targets. On any newer hardware the difference should be even smaller or 0. I will try on my home PC as well.
Even if it had a minor speed impact, application_surface is a feature I very much would like. It allows for post-process effects (you know, like bloom, color changes, motion blur etc.) without the need of managing the rendering on a surface yourself.
|
|
|
Logged
|
|
|
|
|
Goombert
|
|
Reply #17 Posted on: September 19, 2014, 03:09:38 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
Ok well I've got nothing but good news, the implementation is working great and fixes numerous bugs. https://github.com/enigma-dev/enigma-dev/pull/821Some of our basic window functions were also break, for instance window_get_width() was reporting the minimized window size when in fullscreen. I have to run through and fix a lot of this for XLIB as well. All the scaling is now implemented through our viewports.
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
|
|
time-killer-games
|
|
Reply #20 Posted on: September 19, 2014, 09:55:45 pm |
|
|
"Guest"
|
Holy pussy-dick hybrid! Fuck yeah, son!!!
|
|
|
Logged
|
|
|
|
Goombert
|
|
Reply #21 Posted on: September 21, 2014, 08:57:09 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
Alright everyone sorlok offered some testing for other platforms and I have decided to merge the pull request. Please fetch the changes and test them TKG and everyone! https://github.com/enigma-dev/enigma-dev/pull/821
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
|
|
Goombert
|
|
Reply #24 Posted on: September 21, 2014, 11:47:10 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
That's actually not a regression sorlok, we now like Studio and GM8.1< create the backbuffer for the whole window, since well we only have 1 window. So we have to clear the window when it is resized with the window color, and we also need the native implementation for window color so that it shows while resizing the window. You just have to copy it to the graphics bridges for Cocoa, I can't test so that is why I haven't. https://github.com/RobertBColton/enigma-dev/blob/master/ENIGMAsystem/SHELL/Bridges/xlib-OpenGL1/graphics_bridge.cpp#L72
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
|
|