![]() |
I need vertex buffers | ![]() |
![]() |
I need vertex buffers | ![]() |
Jonny D
![]() |
![]() |
If you don't actually need VBO access, but just want the perf benefit, SDL_gpu can draw plenty of lines (because it does use VBOs to do batching).
https://github.com/grimfang4/sdl-gpu Jonny D On Thu, Jan 26, 2017 at 2:22 PM, brianhj wrote:
|
||||||||||||
|
![]() |
Re: I need vertex buffers | ![]() |
brianhj
![]() |
![]() |
Does this work with SDL2? Does it match the performance of OpenGL VBO? If so then yes this is exactly what i need
Thanks!!!
|
||||||||||||||
|
![]() |
![]() |
brianhj
![]() |
![]() |
Unfortunately I can't even get a simple program to work:
Any ideas??? It's just a black screen. I used strange coords and colors to make sure I was sane. |
||||||||||||
|
![]() |
I need vertex buffers | ![]() |
Daniel Gibson
Guest
![]() |
![]() |
Your color only has 3 components, the 4th (alpha) might be set to 0
because of this, making the line totally translucent (invisible)? try something like SDL_Color c = {123, 255, 255, 255}; and use that in the GPU_Line() call. Cheers, Daniel
_______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||
|
![]() |
Re: I need vertex buffers | ![]() |
brianhj
![]() |
![]() |
If i could buy you a beer i would, i added 255 in there and it worked fine. Thanks buddy :D
|
||||||||||||||
|
![]() |
I need vertex buffers | ![]() |
Daniel Gibson
Guest
![]() |
![]() |
Cool, glad I could help (despite never having used SDL_GPU) :-)
On 27.01.2017 04:08, brianhj wrote:
_______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||
|
![]() |
Re: I need vertex buffers | ![]() |
brianhj
![]() |
![]() |
If i could buy you a beer i would, i added 255 in there and it worked fine. Thanks buddy :D
Unfortunately performance with line drawing isn't any better than play ol' SDL ![]() ![]() ![]()
|
||||||||||||||
|
![]() |
I need vertex buffers | ![]() |
Jonny D
![]() |
![]() |
What numbers are you getting?
Jonny D On Thu, Jan 26, 2017 at 10:17 PM, brianhj wrote:
|
||||||||||||
|
![]() |
Re: I need vertex buffers | ![]() |
brianhj
![]() |
![]() |
Well I have 25 sets of lines, each with 466 lines. That's 11650 lines per frame or 699000 lines per second at 60fps.
SDL + SDL_gpu using GPU_line i get 17 FPS SDL + OpenGL + VBO i get 60 FPS, capped by monitor i think I just fucking hate programming in OpenGL. Every little think you need to do is a fucking science project ![]()
|
||||||||||||||
|
![]() |
I need vertex buffers | ![]() |
Jonny D
![]() |
![]() |
If you want to troubleshoot this, we can take it off-list. On a Macbook Pro, I'm getting 30fps rendering 10x that number of lines (>100,000) each frame.
Jonny D On Thu, Jan 26, 2017 at 10:40 PM, brianhj wrote:
|
||||||||||||
|
![]() |
Re: I need vertex buffers | ![]() |
brianhj
![]() |
![]() |
Ok that would be great!!!
|
||||||||||||||
|
![]() |
![]() |
brianhj
![]() |
![]() |
I just set up a simple test program. I looped through 50000 random lines and i'm only getting 33 fps
![]() |
||||||||||
|
![]() |
I need vertex buffers | ![]() |
Jonny D
![]() |
![]() |
That could be a hardware bottleneck? I'll follow up off-list and we can report back when settled.
Jonny D On Friday, January 27, 2017, brianhj wrote:
|
||||||||||||
|
![]() |
I need vertex buffers | ![]() |
Ed Phillips
Guest
![]() |
![]() |
On Fri, 27 Jan 2017, Jonathan Dearborn wrote:
That would be great... these kinds of performance cases are interesting to me. Thanks, Ed _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||
|