Best method to draw.DrawText with cam.Start3d2d

So I am making various information boards on my server using draw.DrawText with cam.Start3d2d (see code below). With this method though, I can notice some FPS drop. Is there another way of doing it that might cause less FPS drop, or is that the only way to draw 3d2d texts? Thanks in advance.

In the example there are only 3 lines but on the server I am using a lot more lines.



	cam.Start3D2D( Vector(e, 10, 132), Angle(0, 0, 90), 0.2 )
            draw.DrawText("blablablaLINE1", "ScoreboardFont", 0, 0, Color(255, 25, 25, 255), TEXT_ALIGN_CENTER )
	cam.End3D2D()
	cam.Start3D2D( Vector(d, 10, 116), Angle(0, 0, 90), 0.07 )
            draw.DrawText("blablablaLINE2", "ScoreboardFont, 0, 0, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT )
	cam.End3D2D()
	cam.Start3D2D( Vector(d, 10, 110), Angle(0, 0, 90), 0.07 )
            draw.DrawText("blablablaLINE3", "ScoreboardFont", 0, 0, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT )
	cam.End3D2D()


For starter’s don’t use multiple ‘cam.Start3D2D’ just to change the position.



 	draw.DrawText( String Text, String Font, POS X, POS Y, Color Color, Number Xalign )


By changing the posx/posy you will have alot cleaner code.
On your second cam.Start3D2D, you arent ending the quote on ScoreboardFont!




draw.DrawText("blablablaLINE2", "ScoreboardFont, 0, 0, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT)


Should be



draw.DrawText("blablablaLINE2", "ScoreboardFont", 0, 0, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT)


The missing quote is just a little mistake when I changed some stuff up for the example, everything is fine in the actual lua file though.

I’ll try putting multiple draw.DrawText under one cam.Start3D2D. Hopefully I get less FPS drops.

EDIT :

It doesn’t seem to help the FPS at all but atleast the overall code is a lot cleaner. Thanks!

If anybody has any idea about what could help the FPS issue, it would be appreciated. I am not too worried about it anyway since I am not using the best computer right now (but I should still have more FPS). It would probably not even be noticable on my PC.