Posted December 15, 201410 yr I have a custom rendered item. It has an .obj model and it creates very big lag. Is this ok?? render code: http://pastebin.com/4dDhtRFZ
December 16, 201410 yr Hi I don't see any obvious problems that would cause lag. How complicated is the model? (# of vertices)? Just a thought - your AWPRender class is only created once, right? You're not creating a fresh instance every frame (or every worse - every item render?) Might be worth putting a breakpoint or System.out.println("constructed"); into the constructor. -TGG
December 16, 201410 yr Author Just one print from the constructor(I forget that I register the render in ClientProxy with MCForgeClient.registerItemRender). Also, I think the problem is that the model is too complicated... 1.2 MB, there are more than 12000 vertices!
December 16, 201410 yr I think the problem is that the model is too complicated... 1.2 MB, there are more than 12000 vertices! Yeah that's quite large for minecraft. Try a model with less vertices (say 120) and see if your lag goes away... if so, perhaps you should consider simplifying your model Minecraft is supposed to look blocky, after all... -TGG
December 16, 201410 yr Author Yes, Minecraft is still made of blocks with a few magic things. Anyway, thanks for your help.!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.