Skip to content

Commit

Permalink
Hudpaint is safe for no framelimit on calls to draw
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone committed Nov 22, 2023
1 parent 321ef84 commit 8ad8a3a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/entities/gmod_wire_gpu/cl_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,7 @@ local function GPU_DrawHUD()
local screenWidth = ScrW()
local screenHeight = ScrH()

if math.min(1/30,CurTime() - (videoGPU.PreviousTime or 0)) > 0 then
videoGPU:Draw()
end
videoGPU:Draw()
videoGPU:RenderVertex(screenWidth,screenHeight)
end
end
Expand Down

0 comments on commit 8ad8a3a

Please sign in to comment.