Advertisement
Guest User

Untitled

a guest
Mar 27th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. local argb = dxCreateTexture(240, 240, "argb", false)
  2. addCommandHandler("memleak",
  3.     function(_, count)    
  4.         local start = getTickCount()
  5.         for i = 1, count do
  6.             dxDrawImage(0, 0, 240, 240, argb)
  7.             dxDrawImageSection(240, 0, 240, 240, 0, 0, 240, 240, argb)
  8.             dxDrawRectangle(240, 240, 240, 240)
  9.             dxDrawText("TEEEST", 0, 480)
  10.             dxDrawLine3D(0, 0, 0, 0, 0, 0, 10)
  11.             dxDrawMaterialLine3D(0, 0, 0, 0, 0, 0, argb, 10)
  12.         end
  13.         outputChatBox("Finsihed in ".. getTickCount()-start.." ms| Ran ".. convertNumber(count) .. " times.")        
  14.     end
  15. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement