draw.TexturedQuad causing lag.

My chat uses rank tags that are images, and the more players in the server, the more laggy it becomes. The “lerp: 100ms” keeps turning yellow, which means the server’s fps is low (afaik).

Are you creating the table outside of HUDPaint?
[lua]local quads = {
texture = surface.GetTextureID(“your/material”),
color = Color(255, 255, 255, 255),
x = 0,
y = 0,
h = 32,
h = 32

hook.Add(“HUDPaint”, “Draw a quad”, function()

I’m not drawing them outside HUDPaint.

He asked if you’re creating the table you pass to the draw.TexturedQuad inside the drawing function.

But from what he says, it’s not the clients that are lagging, but the server.

There’s no way that the server could lag from draw.TexturedQuad though.