Re: I need vertex buffers

"brianhj" <[email protected]> Fri, 27 Jan 2017 04:56:00 +0000
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
Ok that would be great!!!


Jonny D wrote:
> 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 <[email protected] ([email protected])> wrote:
> 
> >  	 	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 [Image: http://forums.libsdl.org/images/smiles/icon_evil.gif ] 
> > 
> > 
> > 
> > 
> > 
> > 	Jonny D wrote:
> > 
> > 	What numbers are you getting?
> > 
> > Jonny D
> > 
> > 
> > On Thu, Jan 26, 2017 at 10:17 PM, brianhj <> wrote:
> > 
> > 
> > 
> > 	Quote:
> > 
> > 	 	 	If i could buy you a beer i would, i added 255 in there and it worked fine. Thanks buddy [Image: http://forums.libsdl.org/images/smiles/icon_biggrin.gif ]
> > 
> > Unfortunately performance with line drawing isn't any better than play ol' SDL [Image: http://forums.libsdl.org/images/smiles/icon_sad.gif ] [Image: http://forums.libsdl.org/images/smiles/icon_sad.gif ] [Image: http://forums.libsdl.org/images/smiles/icon_sad.gif ] Very disappointed
> > 
> > 
> > 
> > 
> > 	Daniel Gibson wrote:
> > 
> > 	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
> > 
> > 
> > 
> > 
> > 	Quote:
> > 
> > 	
> > 
> > Any ideas??? It's just a black screen. I used strange coords and colors
> > to make sure I was sane.
> > 
> > 
> > _______________________________________________
> > SDL mailing list
> > 
> > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
> > 
> > 
> > 	
> > 
> > 
> > _______________________________________________
> > SDL mailing list
> > 
> > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
> > 	
> > 
> > 
> > 	
> > 
> > _______________________________________________
> > SDL mailing list
> > 
> > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
> > 
> > 
> > 	
> > 
> > 
> > 	
> > 
> > 
> > 	
> > 
> > _______________________________________________
> > SDL mailing list
> > [email protected] ([email protected])
> > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
> > 
> > 
>

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org