1
0
Fork 0

Compare commits

...

3 Commits

Author SHA1 Message Date
SamuXarick b11da1e3b8
Merge 797f2e15ba into 8675d7b498 2025-07-29 04:48:30 +00:00
translators 8675d7b498 Update: Translations from eints
chinese (simplified): 5 changes by WenSimEHRP
2025-07-29 04:48:22 +00:00
SamuXarick 797f2e15ba Change: Also add OnNewEconomyDay vehicle performance measurements to the frame rate statistics 2025-01-02 15:40:16 +00:00
6 changed files with 20 additions and 4 deletions

View File

@ -453,6 +453,9 @@ void Aircraft::OnNewCalendarDay()
void Aircraft::OnNewEconomyDay() void Aircraft::OnNewEconomyDay()
{ {
if (!this->IsNormalAircraft()) return; if (!this->IsNormalAircraft()) return;
PerformanceAccumulator framerate(PFE_GL_AIRCRAFT);
EconomyAgeVehicle(this); EconomyAgeVehicle(this);
if ((++this->day_counter & 7) == 0) DecreaseVehicleValue(this); if ((++this->day_counter & 7) == 0) DecreaseVehicleValue(this);

View File

@ -634,8 +634,11 @@ STR_GRAPH_CARGO_TOOLTIP_DISABLE_ALL :{BLACK}在货
STR_GRAPH_CARGO_PAYMENT_TOGGLE_CARGO :{BLACK}切换显示货物 STR_GRAPH_CARGO_PAYMENT_TOGGLE_CARGO :{BLACK}切换显示货物
STR_GRAPH_CARGO_PAYMENT_CARGO :{TINY_FONT}{BLACK}{STRING} STR_GRAPH_CARGO_PAYMENT_CARGO :{TINY_FONT}{BLACK}{STRING}
STR_GRAPH_INDUSTRY_CAPTION :{WHITE}{INDUSTRY} - 货物历史
STR_GRAPH_INDUSTRY_RANGE_PRODUCED :已生产 STR_GRAPH_INDUSTRY_RANGE_PRODUCED :已生产
STR_GRAPH_INDUSTRY_RANGE_TRANSPORTED :已运输 STR_GRAPH_INDUSTRY_RANGE_TRANSPORTED :已运输
STR_GRAPH_INDUSTRY_RANGE_DELIVERED :已送抵
STR_GRAPH_INDUSTRY_RANGE_WAITING :库存
STR_GRAPH_PERFORMANCE_DETAIL_TOOLTIP :{BLACK}查看详细数据 STR_GRAPH_PERFORMANCE_DETAIL_TOOLTIP :{BLACK}查看详细数据
@ -4023,6 +4026,8 @@ STR_INDUSTRY_VIEW_PRODUCTION_LAST_MONTH_TITLE :{BLACK}上月
STR_INDUSTRY_VIEW_PRODUCTION_LAST_MINUTE_TITLE :{BLACK}上分钟产量: STR_INDUSTRY_VIEW_PRODUCTION_LAST_MINUTE_TITLE :{BLACK}上分钟产量:
STR_INDUSTRY_VIEW_TRANSPORTED :{YELLOW}{CARGO_LONG}{STRING}{BLACK}(已运输 {COMMA}% STR_INDUSTRY_VIEW_TRANSPORTED :{YELLOW}{CARGO_LONG}{STRING}{BLACK}(已运输 {COMMA}%
STR_INDUSTRY_VIEW_LOCATION_TOOLTIP :{BLACK}将屏幕中心移动到当前工业的位置。按住 <Ctrl> 键点选会在新视点中显示工业位置 STR_INDUSTRY_VIEW_LOCATION_TOOLTIP :{BLACK}将屏幕中心移动到当前工业的位置。按住 <Ctrl> 键点选会在新视点中显示工业位置
STR_INDUSTRY_VIEW_CARGO_GRAPH :{BLACK}货物图表
STR_INDUSTRY_VIEW_CARGO_GRAPH_TOOLTIP :{BLACK}显示工业货物历史图表
STR_INDUSTRY_VIEW_PRODUCTION_LEVEL :{BLACK}生产等级:{YELLOW}{COMMA}% STR_INDUSTRY_VIEW_PRODUCTION_LEVEL :{BLACK}生产等级:{YELLOW}{COMMA}%
STR_INDUSTRY_VIEW_INDUSTRY_ANNOUNCED_CLOSURE :{YELLOW}此工业已经宣布即刻停业倒闭! STR_INDUSTRY_VIEW_INDUSTRY_ANNOUNCED_CLOSURE :{YELLOW}此工业已经宣布即刻停业倒闭!

View File

@ -1723,6 +1723,9 @@ void RoadVehicle::OnNewCalendarDay()
void RoadVehicle::OnNewEconomyDay() void RoadVehicle::OnNewEconomyDay()
{ {
if (!this->IsFrontEngine()) return; if (!this->IsFrontEngine()) return;
PerformanceAccumulator framerate(PFE_GL_ROADVEHS);
EconomyAgeVehicle(this); EconomyAgeVehicle(this);
if ((++this->day_counter & 7) == 0) DecreaseVehicleValue(this); if ((++this->day_counter & 7) == 0) DecreaseVehicleValue(this);

View File

@ -260,6 +260,8 @@ void Ship::OnNewCalendarDay()
/** Economy day handler. */ /** Economy day handler. */
void Ship::OnNewEconomyDay() void Ship::OnNewEconomyDay()
{ {
PerformanceAccumulator framerate(PFE_GL_SHIPS);
EconomyAgeVehicle(this); EconomyAgeVehicle(this);
if ((++this->day_counter & 7) == 0) { if ((++this->day_counter & 7) == 0) {

View File

@ -4167,6 +4167,8 @@ void Train::OnNewCalendarDay()
/** Economy day handler. */ /** Economy day handler. */
void Train::OnNewEconomyDay() void Train::OnNewEconomyDay()
{ {
PerformanceAccumulator framerate(PFE_GL_TRAINS);
EconomyAgeVehicle(this); EconomyAgeVehicle(this);
if ((++this->day_counter & 7) == 0) DecreaseVehicleValue(this); if ((++this->day_counter & 7) == 0) DecreaseVehicleValue(this);

View File

@ -955,16 +955,17 @@ void CallVehicleTicks()
{ {
_vehicles_to_autoreplace.clear(); _vehicles_to_autoreplace.clear();
PerformanceAccumulator::Reset(PFE_GL_TRAINS);
PerformanceAccumulator::Reset(PFE_GL_ROADVEHS);
PerformanceAccumulator::Reset(PFE_GL_SHIPS);
PerformanceAccumulator::Reset(PFE_GL_AIRCRAFT);
RunEconomyVehicleDayProc(); RunEconomyVehicleDayProc();
{ {
PerformanceMeasurer framerate(PFE_GL_ECONOMY); PerformanceMeasurer framerate(PFE_GL_ECONOMY);
for (Station *st : Station::Iterate()) LoadUnloadStation(st); for (Station *st : Station::Iterate()) LoadUnloadStation(st);
} }
PerformanceAccumulator::Reset(PFE_GL_TRAINS);
PerformanceAccumulator::Reset(PFE_GL_ROADVEHS);
PerformanceAccumulator::Reset(PFE_GL_SHIPS);
PerformanceAccumulator::Reset(PFE_GL_AIRCRAFT);
for (Vehicle *v : Vehicle::Iterate()) { for (Vehicle *v : Vehicle::Iterate()) {
[[maybe_unused]] VehicleID vehicle_index = v->index; [[maybe_unused]] VehicleID vehicle_index = v->index;