Jump to content

Lag when selecting Terrain


photo

Recommended Posts

Hello,

 

i am experiencing a huge lag (frozen editor) when clicking on a Terrain (in the nodes selector).

It recovers after a while.

I am using Open GL editor atm.

 

C.w.

Link to comment

I was guessing that as well.

 

Unfortunately the lag still exists without the green wireframe.

Is this maybe specific to my system, memory consumption, video mem cpu etc?

I will follow that up.

I need to work into the whole terrain again as we are porting a project from U1->U2

 

Cheers.

Werner

Link to comment

It is hard to say what causing such issue right now. Could you please send us the *.world and *.cpp files and your terrain? Our QA guys will check what possibly can cause such lags.

 

Also, an Engine log file can give us some hints. If you will add it to the other files it would be great!

 

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment

I know that this is always difficult to find out such things.

The project in U1 doesnot have any problems like this.

I will try to find out more info.

 

cheers.

Link to comment

So as I am working on with the project it seems to follow some logic.

 

Without any change on the project which we have ported from U1 to U2 the lag is not occuring.

As soon as I imported a new mask, the lag occurs.

 

I changed back the world file fto the previous version after importing the mask and the lag disappears.

So I would assume there is something gong on in the world (file).

 

Any ideas about that?

 

Best.w.

Link to comment

The world file before the mask import looks like that :

...

 

<surface x="5" y="3">

<diffuse_texture>terrain/000_middle_4K/05x03_d.dds</diffuse_texture>
<normal_texture>terrain/000_middle_4K/05x03_n.dds</normal_texture>
<mask_texture>terrain/000_middle_4K/05x03_m.dds</mask_texture>
</surface>
<surface x="6" y="3">
<diffuse_texture>terrain/000_middle_4K/06x03_d.dds</diffuse_texture>
<normal_texture>terrain/000_middle_4K/06x03_n.dds</normal_texture>
<mask_texture>terrain/000_middle_4K/06x03_m.dds</mask_texture>
</surface>
<surface x="7" y="3">
<diffuse_texture>terrain/000_middle_4K/07x03_d.dds</diffuse_texture>
<normal_texture>terrain/000_middle_4K/07x03_n.dds</normal_texture>
<mask_texture>terrain/000_middle_4K/07x03_m.dds</mask_texture>
</surface>
<surface x="8" y="3">
<diffuse_texture>terrain/000_middle_4K/08x03_d.dds</diffuse_texture>
<normal_texture>terrain/000_middle_4K/08x03_n.dds</normal_texture>
<mask_texture>terrain/000_middle_4K/08x03_m.dds</mask_texture>
</surface>
<surface x="9" y="3">
<diffuse_texture>terrain/000_middle_4K/09x03_d.dds</diffuse_texture>
<normal_texture>terrain/000_middle_4K/09x03_n.dds</normal_texture>
<mask_texture>terrain/000_middle_4K/09x03_m.dds</mask_texture>
</surface>
....

After importing the mask, the terrain structure looks like that, as the index texture is added.

 

 

 

<surface x="10" y="13">
<diffuse_texture>terrain/000_middle_4K/0ax0d_d.dds</diffuse_texture>
<normal_texture>terrain/000_middle_4K/0ax0d_n.dds</normal_texture>
<index_texture>terrain/000_middle_4K/0ax0d_i.dds</index_texture>
<mask_texture>terrain/000_middle_4K/0ax0d_m.dds</mask_texture>
</surface>
<surface x="11" y="13">
<diffuse_texture>terrain/000_middle_4K/0bx0d_d.dds</diffuse_texture>
<normal_texture>terrain/000_middle_4K/0bx0d_n.dds</normal_texture>
<index_texture>terrain/000_middle_4K/0bx0d_i.dds</index_texture>
<mask_texture>terrain/000_middle_4K/0bx0d_m.dds</mask_texture>
</surface>
<surface x="12" y="13">
<diffuse_texture>terrain/000_middle_4K/0cx0d_d.dds</diffuse_texture>
<normal_texture>terrain/000_middle_4K/0cx0d_n.dds</normal_texture>
<index_texture>terrain/000_middle_4K/0cx0d_i.dds</index_texture>
<mask_texture>terrain/000_middle_4K/0cx0d_m.dds</mask_texture>
</surface>

 

....

 

Can this be the cause of the slowdown?

 

b.w.

Link to comment

It seems to be this paragraph causing the lag:

 

I assume these are the settings for the import interface.

 

<import>
<height_name/>
<diffuse_name/>
<normal_name/>
<holes_name/>
<num_channels>4</num_channels>
<height_checked>0</height_checked>
<diffuse_checked>0</diffuse_checked>
<normal_checked>0</normal_checked>
<holes_checked>0</holes_checked>
<masks_checked>1</masks_checked>
<coarse_checked>1</coarse_checked>
<refined_checked>1</refined_checked>
<height_scale>1</height_scale>
<mask_file_0>../../mask_psd_08062015.psd</mask_file_0>
<mask_channel_0>0</mask_channel_0>
<mask_depth_0>0</mask_depth_0>
<mask_checked_0>1</mask_checked_0>
<mask_file_1>../../mask_psd_08062015.psd</mask_file_1>
<mask_channel_1>1</mask_channel_1>
<mask_depth_1>0</mask_depth_1>
<mask_checked_1>1</mask_checked_1>
<mask_file_2>../../mask_psd_08062015.psd</mask_file_2>
<mask_channel_2>2</mask_channel_2>
<mask_depth_2>0</mask_depth_2>
<mask_checked_2>1</mask_checked_2>
<mask_file_3>../../mask_psd_08062015.psd</mask_file_3>
<mask_channel_3>3</mask_channel_3>
<mask_depth_3>0</mask_depth_3>
<mask_checked_3>1</mask_checked_3>
</import>

 

 

I imported the masks I wanted, then replaced that import section in the world file with an empty one:

 

<import>
<height_name/>
<diffuse_name/>
<normal_name/>
<holes_name/>
<num_channels>4</num_channels>
<height_checked>0</height_checked>
<diffuse_checked>0</diffuse_checked>
<normal_checked>0</normal_checked>
<holes_checked>0</holes_checked>
<masks_checked>1</masks_checked>
<coarse_checked>1</coarse_checked>
<refined_checked>1</refined_checked>
<height_scale>1</height_scale>
<mask_file_0/>
<mask_channel_0>0</mask_channel_0>
<mask_depth_0>0</mask_depth_0>
<mask_checked_0>1</mask_checked_0>
<mask_file_1/>
<mask_channel_1>0</mask_channel_1>
<mask_depth_1>0</mask_depth_1>
<mask_checked_1>1</mask_checked_1>
<mask_file_2/>
<mask_channel_2>0</mask_channel_2>
<mask_depth_2>0</mask_depth_2>
<mask_checked_2>1</mask_checked_2>
<mask_file_3/>
<mask_channel_3>0</mask_channel_3>
<mask_depth_3>0</mask_depth_3>
<mask_checked_3>1</mask_checked_3>
</import>

 

 

And the lag is not present any more.

(hope that is consistent)

werner

Link to comment

The lag is still there but getting smaller and smaller, the smaller the image file gets.

 

So why is this image 'active'. This is just the interface for the import, isnt it?

It seems that the checkbox does not have any relevance as well (checked or unchecked). 

 

The mask file I am using is 16K.

Link to comment

Ah, ok.
Good to know. I can use PNG format. no problem. The PSD is a little more practical while working away. 

But an uncompressed PNG does save quite quickly as well.

 

Thx for your help.

 

best.w

Link to comment
×
×
  • Create New...