Elvas Tower: Going beyond the 4 GB of memory - Elvas Tower

Jump to content

  • 32 Pages +
  • « First
  • 8
  • 9
  • 10
  • 11
  • 12
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Going beyond the 4 GB of memory Rate Topic: -----

#91 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,490
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 12 November 2017 - 12:18 PM

View PostCsantucci, on 09 November 2017 - 12:15 PM, said:

I've tried using Git.
I have a stupid problem that I can't solve cleanly. When cloning the OR repository, I get one or two files that are unstaged (one example is file OR_MG_LaunchpadGit\Website\openrails.org\shared\mysql\create_db.sql .
Attachment crlf.jpg

After a search on the web this seems a problem of line endings (CR-LF versus LF only). I could get rid of it only committing such files, therefore creating unwanted commits.

Hmm, that is the kind of weirdness that sometimes happens with Git and line endings, although I can't see any reason why that file is being affected and I can't reproduce that even after I've reset my Git settings to defaults. Can you open the file in an editor that shows line endings and check what the file contains? It should be all CRLF.

#92 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 12 November 2017 - 01:56 PM

I decided to delete the cloned repository and to clone a new one. This time I didn't get the error...

#93 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 13 November 2017 - 11:22 PM

I found out the problem with line endings and encoding differences comes from gpz's files. Unfortunately it does not affect only the two mentioned files, but many others, and maybe all. In fact I already had to check file by file when I worked using svn.

This means that importing and rebasing the full story becomes quite cumbersome (at least for me).

#94 User is offline   Icik 

  • Conductor
  • Group: Status: Active Member
  • Posts: 308
  • Joined: 19-April 15
  • Simulator:Open Rails
  • Country:

Posted 14 November 2017 - 08:05 AM

Carlo, I know you are very busy, but can you to get out a new version of MGOR with randomizing? :derisive:

#95 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 14 November 2017 - 01:39 PM

Here is OR x.3981 plus explore in activity mode with Monogame.
http://www.interazio...e/OR3981_MG.zip .

Here the updated DevKit (needed starting from OR x.3979)
http://www.interazio...DevKit_rev5.zip .


Obsolete

#96 User is offline   dennisat 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 474
  • Joined: 16-February 13
  • Gender:Male
  • Simulator:Open Rails & MSTS
  • Country:

Posted 15 November 2017 - 05:48 AM

View PostCsantucci, on 07 October 2017 - 10:57 AM, said:

yes, the pixellation issue is probably the most serious one, and it occurs to many people. Issue is present also in gpz's original version.


View Postdennisat, on 05 November 2017 - 11:06 AM, said:

I know nothing about HLSL but with Mr Google at hand I've been able to clear all but 2 of the startup warning messages. Monogame doesn't seem to like syntax where it has to assume the intention of the programmer.

The first outstanding message is :
SceneryShader.fx(371,5): warning X4000: use of potentially uninitialized variable (rv)


I've just experimented with initializing the variable rv. I've done this with almost total ignorance of what's going on in these shader programs but the pixelation disappears!

In SceneryShader.fx I replaced:

"float3 rv;"
with:
"float3 rv = { 0, 0, 0 };"

I haven't been able to detect any unwanted side effects so far but someone more knowledgeable about Shaders may well be able to detect a flaw in this patch.

Dennis

#97 User is offline   Icik 

  • Conductor
  • Group: Status: Active Member
  • Posts: 308
  • Joined: 19-April 15
  • Simulator:Open Rails
  • Country:

Posted 15 November 2017 - 07:36 AM

Great! Maybe problem occured with variable also in CabShader.

#98 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 15 November 2017 - 09:33 AM

Dennis, that's great news! Could you share your modified shader files, so that I insert them in the MG pack?

#99 User is offline   dennisat 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 474
  • Joined: 16-February 13
  • Gender:Male
  • Simulator:Open Rails & MSTS
  • Country:

Posted 15 November 2017 - 09:53 AM

View PostCsantucci, on 15 November 2017 - 09:33 AM, said:

Dennis, that's great news! Could you share your modified shader files, so that I insert them in the MG pack?


Here they are, they are based on V3982. I decided not to fix the warning in "ParticleEmitter", any solution I could think of was more complex and may not have saved any processor cycles.

Attached File  Shaders.zip (6.89K)
Number of downloads: 294

Dennis

#100 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 15 November 2017 - 12:35 PM

Thanks Dennis, in the meantime I had confirmations in my country that your correction eliminates pixellation. So only the problem of the 2D cab not darkening after sunset remains.

Here is OR x.3982 plus Explore in Activity mode, Monogame based, with Dennis' shaders inside
http://www.interazio...e/OR3982_MG.zip
I have also updated the DevKit with the shaders modified by Dennis. It is downloadable from here
http://www.interazio...DevKit_Rev6.zip .

  • 32 Pages +
  • « First
  • 8
  • 9
  • 10
  • 11
  • 12
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users