mirror of
https://github.com/Reuh/wirefame.git
synced 2025-10-27 17:49:31 +00:00
First commit
This commit is contained in:
commit
b4798c8c16
7 changed files with 148562 additions and 0 deletions
22
test/bench.lua
Normal file
22
test/bench.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
local t = require("socket").gettime
|
||||
|
||||
--
|
||||
local wirefame = require("wirefame")
|
||||
|
||||
function wirefame.drawLine(x0, y0, x1, y1)
|
||||
love.graphics.line(x0, y0, x1, y1)
|
||||
end
|
||||
|
||||
local model = wirefame.open("metaknight.obj")
|
||||
|
||||
--
|
||||
local s = t()
|
||||
|
||||
for _=1,100 do
|
||||
model:draw(0, 0, 1000, 1000, 255)
|
||||
end
|
||||
|
||||
local e = t()
|
||||
|
||||
--
|
||||
print(e-s)
|
||||
Loading…
Add table
Add a link
Reference in a new issue