View in English

  • Apple Developer
    • Get Started

    Explore Get Started

    • Overview
    • Learn
    • Apple Developer Program

    Stay Updated

    • Latest News
    • Hello Developer
    • Platforms

    Explore Platforms

    • Apple Platforms
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    Featured

    • Design
    • Distribution
    • Games
    • Accessories
    • Web
    • Home
    • CarPlay
    • Technologies

    Explore Technologies

    • Overview
    • Xcode
    • Swift
    • SwiftUI

    Featured

    • Accessibility
    • App Intents
    • Apple Intelligence
    • Games
    • Machine Learning & AI
    • Security
    • Xcode Cloud
    • Community

    Explore Community

    • Overview
    • Meet with Apple events
    • Community-driven events
    • Developer Forums
    • Open Source

    Featured

    • WWDC
    • Swift Student Challenge
    • Developer Stories
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Centers
    • Documentation

    Explore Documentation

    • Documentation Library
    • Technology Overviews
    • Sample Code
    • Human Interface Guidelines
    • Videos

    Release Notes

    • Featured Updates
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • Downloads

    Explore Downloads

    • All Downloads
    • Operating Systems
    • Applications
    • Design Resources

    Featured

    • Xcode
    • TestFlight
    • Fonts
    • SF Symbols
    • Icon Composer
    • Support

    Explore Support

    • Overview
    • Help Guides
    • Developer Forums
    • Feedback Assistant
    • Contact Us

    Featured

    • Account Help
    • App Review Guidelines
    • App Store Connect Help
    • Upcoming Requirements
    • Agreements and Guidelines
    • System Status
  • Quick Links

    • Events
    • News
    • Forums
    • Sample Code
    • Videos
 

Videos

Abrir menú Cerrar menú
  • Colecciones
  • Todos los videos
  • Información

Más videos

  • Información
  • Código
  • Meet RealityKit Trace

    Discover how you can use RealityKit Trace to improve the performance of your spatial computing apps. Explore performance profiling guidelines for this platform and learn how the RealityKit Trace template can help you optimize rendering for your apps. We'll also provide guidance on profiling various types of content in your app to help pinpoint performance issues.

    Capítulos

    • 0:44 - Rendering
    • 2:17 - Profiling spatial apps
    • 3:34 - Introduction to RealityKit Trace
    • 7:38 - Optimizing offscreen passes
    • 11:30 - Optimizing asset rendering
    • 14:02 - Optimizing system power impact
    • 17:55 - Overview of optimized World app
    • 19:01 - Recommendations

    Recursos

    • Analyzing the performance of your visionOS app
      • Video HD
      • Video SD

    Videos relacionados

    WWDC23

    • Analyze hangs with Instruments
    • Get started with building apps for spatial computing
    • Meet Reality Composer Pro
    • Optimize app power and performance for spatial computing

    WWDC21

    • Discover Metal debugging, profiling, and asset creation tools

    Tech Talks

    • Demystify and eliminate hitches in the render phase
  • Buscar este video…
    • 10:50 - SwiftUI View with High Offscreens

      private struct Item: View {
          var module: Module
      
          // The corner radius of the item's hightlight when selected or hovering.
          let cornerRadius = 20.0
      
          var body: some View {
              NavigationLink(value: module) {
                  VStack(alignment: .leading, spacing: 3) {
                      Text(module.eyebrow)
                          .font(.titleHeading)
                          .foregroundStyle(.secondary)
                      VStack(alignment: .leading, spacing: 7) {
                          Text(module.heading)
                              .font(.largeTitle)
                          Text(module.abstract)
                      }
                  }
                  .padding(.horizontal, 5)
                  .padding(.vertical, 20)
              }
              .buttonStyle(.bordered)
              .shadow(radius: 10)
              .buttonBorderShape(.roundedRectangle(radius: cornerRadius))
              .frame(minWidth: 150, maxWidth: 280)
          }
      }
    • 16:33 - EarthEntity Factory

      class EarthEntity: Entity {
          static func makeGlobe() -> EarthEntity {
              EarthEntity(earthModel: Entity.makeModel(
                  name: "Earth",
                  filename: "Globe",
                  radius: 0.35,
                  color: .blue)
              )
          }
      
          static func makeCloudyEarth() -> EarthEntity {
              let earthModel = Entity()
              earthModel.name = "Earth"
      
              Task {
                  if let scene = await loadFromRealityComposerPro(
                      named: WorldAssets.rootNodeName,
                      fromSceneNamed: WorldAssets.sceneName
                  ) {
                      earthModel.addChild(scene)
                  } else {
                      fatalError("Unable to load earth model")
                  }
              }
      
              return EarthEntity(earthModel: earthModel)
          }
      }
    • 16:53 - Orbit SwiftUI View Body

      struct Orbit: View {
          @EnvironmentObject private var model: ViewModel
      
          var body: some View {
              Earth(
                  world: EarthEntity.makeGlobe(),
                  earthConfiguration: model.orbitEarth,
                  satelliteConfiguration: [model.orbitSatellite],
                  moonConfiguration: model.orbitMoon,
      
                  showSun: true,
                  sunAngle: model.orbitSunAngle,
      
                  animateUpdates: true
              )
              .place(
                  initialPosition: Point3D([475, -1200.0, -1200.0]),
                  useCustomGesture: model.useCustomGesture,
                  handOffset: model.customGestureHandOffset,
                  isCustomGestureAnimated: model.isCustomGestureAnimated,
                  debugCustomGesture: model.debugCustomGesture,
                  scale: $model.orbitEarth.scale)
          }
      }
    • 17:26 - SwiftUI ViewModel

      class ViewModel: ObservableObject {
          // MARK: - Navigation
          @Published var navigationPath: [Module] = []
          @Published var titleText: String = ""
          @Published var isTitleFinished: Bool = false
          var finalTitle: String = "Hello World"
      
          // MARK: - Globe
          @Published var globeEarthEntity: EarthEntity = .makeGlobe()
      
          @Published var isShowingGlobe: Bool = false
          @Published var globeEarth: EarthEntity.Configuration = .globeEarthDefault
          @Published var globeEarthOffset: SIMD3<Double> = [0, 0, 0]
          @Published var globePanelOffset: SIMD3<Double> = [0, -50, 30]
      
          @Published var showSatelliteButton: Bool = false
          @Published var isShowingSatellite: Bool = false
      
          // MARK: - Orbit
          @Published var orbitEarthEntity: EarthEntity = .makeGlobe()
      
          @Published var useCustomGesture: Bool = true
          @Published var customGestureHandOffset: SIMD3<Float> = [0, 0.21, -0.07]
          @Published var isCustomGestureAnimated: Bool = false
          @Published var debugCustomGesture: Bool = false
      
          @Published var orbitSatelliteScale: Float = 0.9
          @Published var orbitMoonScale: Float = 0.9
          @Published var orbitTelescopeScale: Float = 0.8
          @Published var orbitSatelliteZOffset: Double = 100
          @Published var orbitMoonZOffset: Double = 100
          @Published var orbitTelescopeZOffset: Double = 100
      
          @Published var isShowingOrbit: Bool = false
          @Published var orbitImmersionStyle: ImmersionStyle = .mixed
          @Published var orbitEarth: EarthEntity.Configuration = .orbitEarthDefault
          @Published var orbitSatellite: SatelliteEntity.Configuration = .orbitSatelliteDefault
          @Published var orbitMoon: SatelliteEntity.Configuration = .orbitMoonDefault
      
          @Published var orbitSunAngle: Angle = .degrees(150)
          var orbitSunAngleBinding: Binding<Float> {
              Binding<Float>(
                  get: { Float(self.orbitSunAngle.degrees) },
                  set: { self.orbitSunAngle = .degrees(Double($0)) }
              )
          }
      
          // MARK: - Solar System
          @Published var solarEarthEntity: EarthEntity = .makeCloudyEarth()
      
          @Published var isShowingSolar: Bool = false
          @Published var solarImmersionStyle: ImmersionStyle = .full
          @Published var solarEarth: EarthEntity.Configuration = .solarEarthDefault
          @Published var solarSatellite: SatelliteEntity.Configuration = .solarTelescopeDefault
          @Published var solarMoon: SatelliteEntity.Configuration = .solarMoonDefault
      
          @Published var solarSunDistance: Double = 700
          @Published var solarSunAngle: Angle = .degrees(280)
          @Published var solarSunSpotIntensity: Float = 10.5
          @Published var solarSunEmissionIntensity: Float = 10.5
          var solarSunPosition: SIMD3<Float> {
              [Float(solarSunDistance * sin(solarSunAngle.radians)),
               0,
               Float(solarSunDistance * cos(solarSunAngle.radians))]
          }
      }
    • 17:33 - SwiftUI Orbit View Body

      struct Orbit: View {
          @EnvironmentObject private var model: ViewModel
      
          var body: some View {
              Earth(
                  world: model.globeEarthEntity,
                  earthConfiguration: model.orbitEarth,
                  satelliteConfiguration: [model.orbitSatellite],
                  moonConfiguration: model.orbitMoon,
      
                  showSun: true,
                  sunAngle: model.orbitSunAngle,
      
                  animateUpdates: true
              )
              .place(
                  initialPosition: Point3D([475, -1200.0, -1200.0]),
                  useCustomGesture: model.useCustomGesture,
                  handOffset: model.customGestureHandOffset,
                  isCustomGestureAnimated: model.isCustomGestureAnimated,
                  debugCustomGesture: model.debugCustomGesture,
                  scale: $model.orbitEarth.scale)
          }
      }

Developer Footer

  • Videos
  • WWDC23
  • Meet RealityKit Trace
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • Apple Intelligence
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Machine Learning & AI
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Downloads
    • Sample Code
    • Videos
    Open Menu Close Menu
    • Help Guides & Articles
    • Contact Us
    • Forums
    • Feedback & Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program
    • Mini Apps Partner Program
    • News Partner Program
    • Video Partner Program
    • Security Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Read the latest news.
    Get the Apple Developer app.
    Copyright © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines