HomeGamesUpdatesPricingMethodology
Steam News8 April 20262mo ago

How CRAILearningSystem Works

How CRAILearningSystem Works Purpose: CRAILearningSystem is an adaptive AI system for racing games.

In this update1

Full notes

Full City-Racing update

Read the full published notes in a cleaner layout. The original post stays linked below.

What changed

0 fixes0 additions3 changes0 removals
  • Performance
  • Events
changedCRAILearningSystem is an adaptive AI system for racing games. It enables AI cars to learn the optimal speed for each waypoint on the track by analyzing their own driving performance in real time.
changedPerformance Monitoring:
changedThe AI becomes more competitive and realistic, providing a better challenge for players.

City-Racing changes

changedCRAILearningSystem is an adaptive AI system for racing games. It enables AI cars to learn the optimal speed for each waypoint on the track by analyzing their own driving performance in real time.
changedPerformance Monitoring:
changedThe AI becomes more competitive and realistic, providing a better challenge for players.

How CRAILearningSystem Works

Purpose:

CRAILearningSystem is an adaptive AI system for racing games. It enables AI cars to learn the optimal speed for each waypoint on the track by analyzing their own driving performance in real time.

Key Mechanisms:

  1. Waypoint-Based Learning:

  • The system tracks each waypoint on the racing track.

  • For every waypoint, it stores learning data: optimal speed, how well the car passed the waypoint, if it overshot, understeered, or was perfect, and more.

  1. Performance Monitoring:

  • As the AI car drives, the script monitors how close the car passes to the center of each waypoint.

  • It detects if the car overshoots (goes too wide), understeers, or passes perfectly.

  1. Adaptive Speed Adjustment:

  • If the car consistently overshoots or understeers at a waypoint, the system reduces the target speed for that waypoint.

  • If the car passes perfectly, the system increases the target speed for that waypoint (up to a maximum).

  • This process is repeated every lap, so the AI gets better with experience.

  1. Corner Detection:

  • The system detects sharp corners and applies more aggressive learning to those waypoints, ensuring the AI slows down more for difficult turns.

  1. Immediate Feedback (Optional):

  • With the "immediateSpeedApplication" option, the AI can apply learned speeds right away, not just on the next lap.

  1. Data-Driven:

  • All adjustments are based on real driving data, not just static track analysis.

---

Why CRAILearningSystem is Good

  • Self-Improving:

The AI gets better every lap, learning from its mistakes and successes, just like a human driver.

  • Track-Aware:

It adapts to any track layout, including custom or procedurally generated tracks, because it learns from actual driving, not pre-baked data.

  • Handles Corners Intelligently:

By detecting sharp corners and applying extra learning, it avoids common AI pitfalls like crashing or going off-track on tight turns.

  • Realistic and Challenging AI:

The AI becomes more competitive and realistic, providing a better challenge for players.

  • No Manual Tuning Needed:

You don’t have to hand-tune speeds for every waypoint—the system figures it out automatically.

  • Debugging and Visualization:

Built-in debug options help you see how the AI is learning and performing.

Optimized the CRAILearningSystem class!

Summary:

CRAILearningSystem is a modern, adaptive AI system that makes your racing AI smarter, more realistic, and able to handle any track by learning from its own driving. This results in a more dynamic and challenging racing experience for players.

Source

Steam News / 8 April 2026

Open original post

Changelog.gg summarizes and formats this update. How we read updates.