About Store Forum Documentation Contact
Donations:
289$/mo



Post Reply 
Blocks performance
Author Message
kulesz Offline
Member

Post: #1
Blocks performance
Hi,

Esenthel, is there some way to improve Edit::Blocks performance? I'm rendering 256 chunks of 16x16 blocks, every column with average of 100 blocks tall (like in Minecraft). It gives me about 6.5M of blocks and it's pretty slow - gives about 15-20fps (or even less), without anything else turned on and with standard settings (screen below). It also generates about 35-40 seconds in the beggining.
Is there a way to speed it up a bit?


Attached File(s) Image(s)
   
08-17-2011 06:02 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Blocks performance
No. Try adjusting block resolutions to reduce draw calls

Use frustum culling when drawing prepare and shadows
08-17-2011 06:32 PM
Find all posts by this user Quote this message in a reply
kulesz Offline
Member

Post: #3
RE: Blocks performance
from Blocks.h
Code:
// draw
void draw      (C Matrix &matrix) {if(Frustum(_mesh.box, matrix))_mesh.draw      (matrix);}
void drawShadow(C Matrix &matrix) {if(Frustum(_mesh.box, matrix))_mesh.drawShadow(matrix);}
I guess frustum culling is on by default, isn't it?
(This post was last modified: 08-17-2011 07:35 PM by kulesz.)
08-17-2011 07:34 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Blocks performance
yes, sorry
08-17-2011 10:08 PM
Find all posts by this user Quote this message in a reply
kulesz Offline
Member

Post: #5
RE: Blocks performance
Well. that's a bit sad if that's all what can be done... I don't want to make another Minecraft clone, but I like the idea of "blocky terrain", so wanted to implement it in the EE... However with setting similiar to MC, it get's slooow... :-/
08-18-2011 07:36 AM
Find all posts by this user Quote this message in a reply
Post Reply