Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Beta
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter Beta Topics related to Beta releases of Orbiter and Orbiter development.

Reply
 
Thread Tools
Old 07-03-2016, 03:44 PM   #256
jarmonik
Beta Tester

Default

Something is wrong with the texpack.exe. It doesn't compress tiles beyond level 9, which is the highest global level I got right now. For an example the level 19 KSC doesn't get compressed.
jarmonik is offline   Reply With Quote
Old 07-03-2016, 04:25 PM   #257
jroly
Donator
 
jroly's Avatar
Default

Martin, It does work but there are problems with it. Moon and Mars is fine I think but with DG at KSC senario, the runway is hilly with the elevation. If you go up close it flattens but zoom out it appears hilly but regardless if the DG tries to use the runway it goes all over the place.

I know KSC is part of Elev_mod.tree and I checked that and it is only 1KB in size, so texpack did not compress it. (maybe it did compress, if it contains flattening data it would compess very small as there is data in it)

Anyway I copied the Elev_mod back in and that didn't fix it so it is something else.

Last edited by jroly; 07-03-2016 at 05:13 PM.
jroly is offline   Reply With Quote
Old 07-03-2016, 07:28 PM   #258
kuddel
Donator
Default

I can confirm the "bumpy KSC runway". Other than that, the D3D9Client (I run home-compiled trunk r697 of D3D9Client) seems to work well with the Archives.
kuddel is offline   Reply With Quote
Old 07-03-2016, 08:52 PM   #259
martins
Orbiter Founder
Default

The problem is that currently texpack can't cope with gaps in the quadtree. Any tiles which don't have an unbroken path of existing tile files to the tree root will be missed. I'll need some time to think about how to fix this. In the meantime, I may provide working archive files (lowres global + highres KSC) as part of a release candidate.
martins is offline   Reply With Quote
Old 07-03-2016, 09:30 PM   #260
kuddel
Donator
Default

Quote:
Originally Posted by martins View Post
 The problem is that currently texpack can't cope with gaps in the quadtree. Any tiles which don't have an unbroken path of existing tile files to the tree root will be missed. I'll need some time to think about how to fix this. In the meantime, I may provide working archive files (lowres global + highres KSC) as part of a release candidate.
I thought that I had all tiles...but maybe not.
Do I understand this correct, that those "bumps" resulted from a tile (leaf) that could not be routed back to root (via branches) and I just haven't all the "branches"? Which seems to be O.K. for the 'single file' algorithm, but is fatal to the 'packed algorithm', right?
And therefore I am not able to "fix" this at home, right?

Nevertheless, that general idea seems to work fine (minor deficiencies )
kuddel is offline   Reply With Quote
Old 07-04-2016, 03:07 PM   #261
4throck
Enthusiast !
 
4throck's Avatar
Default

Windows has a built in compression option for any folder or file.
The big advantage is that you can still access stuff the same as before (no extra files are created).
Overall speed is dependent on processor/memory, but it can actually be faster if the system is limited by disk speed...
Perhaps it would be simpler to just use that?


I've tested compressing the moon terrain data and found that up to level 10 the gains are minimal (349MB original, 339MB windows compression).
I think that windows uses Zip (or similar) so I guess that the original data has little redundancy at lower resolutions.

Last edited by 4throck; 07-04-2016 at 03:15 PM.
4throck is offline   Reply With Quote
Old 07-04-2016, 07:07 PM   #262
Enjo
Mostly harmless
 
Enjo's Avatar


Default

I've conducted an initial performance test, still without the Topographic Map MFD, using the scenario at the bottom, with the DG flying with Prograde AP. Results:

Cached data:
Tacc: 10x -> FPS: 15-18, Max disk usage: 3 MB/s
Tacc: 100x -> FPS: 20-50, Max disk usage: 12 MB/s

Zipped data:
Tacc: 10x -> FPS: 15-18, Max disk usage: 2 MB/s
Tacc: 100x -> FPS: 20-45, Max disk usage: 6 MB/s

Finds:
1) While using the zipped data, I noticed severe slowdowns at polar coordinates, and flying with the prograde AP at tacc. 1000x made the sim unstable. Nothing like this happened with cached data.
2) Greater FPS at higher timeframes results probably from the second thread not loading the data on time (in both cases)
3) I haven't visually noticed any difference in loading the highest patch level after slowing down from 100x down to 10x, between the two runs, but still see 1) for a more objective measure.

What I can't understand is that since the texture loading is done in the second thread, why is the main thread affected by slower texture load (point 1))? Isn't it so, that since the loading times of the archived versions is slower, therefore the queue gets longer and every element of the queue is in processed (or rather copied to) the main thread? If so, couldn't the first-in elements be ignored (i.e. not copied to the main thread), if the queue exceeds a certain reasonable size? This would mean that the vessel moves too fast to notice the first-in elements already.

And the scenario in question:

Code:
BEGIN_DESC
	DG in a martian polar orbit - testing cached vs archived planetary data.
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 51982.5310760535
  Help CurrentState_img
END_ENVIRONMENT

BEGIN_FOCUS
  Ship GL-01
END_FOCUS

BEGIN_CAMERA
  TARGET GL-01
  MODE Cockpit
  FOV 50.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_MFD Left
  TYPE Orbit
  PROJ Ship
  FRAME Equator
  ALT
  REF Mars
END_MFD

BEGIN_MFD Right
  TYPE User
  MODE TopoMapMFD
END_MFD

BEGIN_SHIPS
GL-01:Deltaglider
  STATUS Orbiting Mars
  RPOS 1735647.408 2962527.817 938553.374
  RVEL 164.0916 -1133.4380 3274.2263
  AROT -19.901 -4.152 29.278
  VROT -0.0569 0.0000 -0.0004
  AFCMODE 7
  PRPLEVEL 0:1 1:0.9
  NAVFREQ 0 0
END
END_SHIPS

Last edited by Enjo; 07-04-2016 at 07:40 PM.
Enjo is offline   Reply With Quote
Thanked by:
Old 07-04-2016, 07:11 PM   #263
kuddel
Donator
Default

Is it just me or can someone else confirm this:
When I run "Welcome to Orbiter 2016" scenario with external client, the text annotations are very strange...Multiple repeating of one line.
I could not (yet) check if D3D7Client shows this behavior, but D3D9Client does.

Thanks for any feedback,
Kuddel
kuddel is offline   Reply With Quote
Old 07-04-2016, 07:52 PM   #264
jarmonik
Beta Tester

Default

Quote:
Originally Posted by kuddel View Post
 Is it just me or can someone else confirm this:
When I run "Welcome to Orbiter 2016" scenario with external client, the text annotations are very strange...Multiple repeating of one line.
I could not (yet) check if D3D7Client shows this behavior, but D3D9Client does.
I noticed that too. Well, it would be nice to have a pre-build binary of D3D7Client available.
jarmonik is offline   Reply With Quote
Old 07-04-2016, 08:44 PM   #265
kuddel
Donator
Default

I tried to build D3D7Client, but I am unable to find "../GDIClient/GDIClient.h"...any idea?

---------- Post added at 22:22 ---------- Previous post was at 22:16 ----------

...found it, but due to missing <dplay.h> (DX7 SDK I think) I am unable to build

---------- Post added at 22:44 ---------- Previous post was at 22:22 ----------

...got it to build! But only by removing #include <dplay.h>, all used defines @ LogOut_DPErr and d3dim.lib.
It works, but I'd rather not give it to anyone
kuddel is offline   Reply With Quote
Old 07-05-2016, 04:38 AM   #266
jarmonik
Beta Tester

Default

Quote:
Originally Posted by kuddel View Post
 It works, but I'd rather not give it to anyone
If the text annotations works with it then the problem is in the D3D9. Do you look into it or should I look into it ?
jarmonik is offline   Reply With Quote
Old 07-05-2016, 07:50 AM   #267
kuddel
Donator
Default

Quote:
Originally Posted by jarmonik View Post
 If the text annotations works with it then the problem is in the D3D9. Do you look into it or should I look into it ?
It looks like the text annotations work as expected in the D3D7Client...
The image update rate at my home computer is a bit slow with that debug build of D3D7Client, so it's not that easy to compare. But I didn't saw the problems with the 'multiple text'.
kuddel is offline   Reply With Quote
Old 07-05-2016, 08:20 AM   #268
kuddel
Donator
Default

@jarmo
In case you like to see / debug what D3D7Client is doin' different, I've attached a "bend" version of D3D7Client rev. 51 to compile with VS 2012 (@ home I've used VS 2015, but the project files / solutions should easily migrate)
Attached Files
File Type: zip D3D7Client(r51plusplus).zip (834.6 KB, 17 views)
kuddel is offline   Reply With Quote
Thanked by:
Old 07-05-2016, 10:26 PM   #269
kuddel
Donator
Default

Quote:
Originally Posted by jarmonik View Post
 If the text annotations works with it then the problem is in the D3D9. Do you look into it or should I look into it ?
The problem is in D3D9Client! Orbiter core likes to call D3D9Pad::TextBox, which was not implemented, as a fallback D3D9Pad::Text is called which ignored the len parameter.

I've committed a quick fix (rev.704) for the 'length problem', but the D3D9Pad::TextBox method needs to be filled with life! (wrapping of lines).

Could you take a closer look into that, please.

/Kuddel

Last edited by kuddel; 07-05-2016 at 10:28 PM.
kuddel is offline   Reply With Quote
Thanked by:
Old 07-07-2016, 05:29 AM   #270
Matias Saibene
Orbinaut
Default

One idea: a system to translate Orbiter (launchpad, menus and manuals) to other languages?
I have seen some programs use an ini file to allow translations of the program into other languages.
Matias Saibene is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Beta


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 04:47 AM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.