After hours of testing this is the best* way to build diagonal railroads. Use 1 powered rail every 21 rail for max speed