Strange performance issue with big object with second UV

Problems building or running the engine, queries about how to use features etc.
Post Reply
xrgo
OGRE Expert User
OGRE Expert User
Posts: 1148
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 168

Strange performance issue with big object with second UV

Post by xrgo »

Hello! I am having a really strange issue:
I have a big object ~(4000,50,1000) that is a floor, and when I add a second uv set I get very poor performance, and since its a floor I really need a second uv (one for tiled tex and another for non tiled tex). Its the first time I noticed a second uv set bothering me. I tried with a simple big cube, no textures.. and it also happens.
If I reduce the size of the object the problems decreases, around scale 0.1 it goes away completely (even if I put it near the camera so it uses most of the screen)

I've made a video:
https://youtu.be/lMuUazKfxGk
My engine loads the blender file at runtime, so maybe I am generating the mesh wrong? I double checked that the amount of uv set its correct in the mesh.

Tried profiling and the only thing that changes is the command execution..
with 1 uv
Image
with 2 uv
Image
(the scene 21 is the camera used on the screen inside the cabin, that I skip every other frame)

what can I do?
Post Reply