The International Simutrans Forum

 

Author Topic: [r7856] Planes go invisible when flying over tunnel entrances and bridges  (Read 1850 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacethingy

  • *
  • Posts: 177
I've been noticing planes vanishing for a while now; I've only just realised that its when they fly over tunnel entrances and bridges:


It makes the plane stay invisible until it changes direction (especially see the lowest plane in the video).

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4564
  • Languages: EN, DE, AT
Re: [r7856] Planes go invisible when flying over tunnel entrances and bridges
« Reply #1 on: February 04, 2017, 09:25:44 AM »
Here is a patch. It is quite a hack. Should I submit this?


Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9438
  • Languages: De,EN,JP
Re: [r7856] Planes go invisible when flying over tunnel entrances and bridges
« Reply #2 on: February 04, 2017, 01:23:43 PM »
You are the expert. When I last touched that code, the image was simply set to empty for a vehicle in a tunnel.

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1179
    • Simutrans-BLOG
  • Languages: ES

Offline TurfIt

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 1323
Re: [r7856] Planes go invisible when flying over tunnel entrances and bridges
« Reply #4 on: February 04, 2017, 07:35:46 PM »
Isn't almost the entirety of the rendering code now a 'hack' of special cases trying to minimize the artifacts.  ;D  Whatever works...

Would the save_cr and toggle function not make more sense in simgraph along with the rest of the clipping stuff?
For multithreaded performance, save_cr needs padding to get any writes by different threads off the same cacheline. Same as was done with the clips[] struct.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4564
  • Languages: EN, DE, AT
Re: [r7856] Planes go invisible when flying over tunnel entrances and bridges
« Reply #5 on: February 07, 2017, 06:54:26 PM »
Thanks for the comment. I put this into simgraph. The airplane bugs should be fixed in r8070. I tried to cleanup the code and the macro definitions.