Tier 4 Series 303

303G: The Procedural Exam

Capstone Exam
Pilot Record
Student Profile
"The simulation generation is unstable. The terrain is jagged, the world changes every time the engine restarts, and the generation loop is freezing the controls. Identify the three critical failures to stabilize the procedural engine."

Target Asset for Audit

FRAGILE_CODE_DETECTED
using UnityEngine;

public class WorldGen : MonoBehaviour {
    void Start() {
        // Audit Requirement: Lesson 303C (Seed)
        // Error 1: No Seed Initialization
        GenerateWorld();
    }

    void GenerateWorld() {
        // Audit Requirement: Lesson 303E (Jobs)
        // Error 2: Heavy Main Thread Loop
        for(int i=0; i<1000000; i++) {
            // Audit Requirement: Lesson 303A (Noise)
            // Error 3: Pure Randomness
            float height = Random.Range(0f, 100f);
            BuildVertex(i, height);
        }
    }
}

Supervisor's Certification

Authenticated Pilot
pilot_191a82ef75e54304
Session Secure

Failure Point #1

Replication Failure

The world generates differently every time. Command the AI to use a Seed.

Failure Point #2

Main Thread Stall

The loop calculates 1 million points on the main thread. Command the AI to use the Job System.

Failure Point #3

Topology Failure

The terrain is using Random.Range, creating spikes. Command the AI to use Coherent Noise.