FastCast | Job System Raycast Framework/ Fast Raycast
Golem Kin Games
$4.99
(no ratings)
Date |
Price |
---|---|
Date |
Price($) |
10/08(2024) |
4.99 |
11/22(2024) |
4.99 |
Jump AssetStore
FastCast is a high-performance raycasting system for Unity, optimized with the Job System. Perform fast, batch raycasts with built-in Gizmo visualization and easy API for single and multiple rays.AI is used for promo images and for expansion on documentation FastCast is a cutting-edge raycasting system built for Unity, designed to maximize performance by leveraging Unity's Job System. Whether you need single or multiple raycasts, FastCast provides a powerful and easy-to-use Singleton API for both cases. Perfect for games or simulations requiring real-time raycast calculations, this system is optimized for speed and flexibility.Key features include:High-performance raycasting with the Job SystemSupport for both single and multiple raycastsCustomizable parameters such as hitBackfaces, hitTriggers, and hitMultiFaceBuilt-in Gizmo visualization to debug raycasts in the Editor, with color-coded hit and miss resultsEditor integration to set max raycasts per frame and track raycast performance in real-timeFastCast is ideal for developers looking to improve raycast performance while maintaining a user-friendly, flexible API for their project.. Mobile Optimization via Unity's Job SystemFastCast takes full advantage of Unity's Job System, which allows tasks like raycasting to run in parallel across multiple threads. On mobile devices, where CPU resources are more limited, this multi-threaded approach ensures that performance is optimized. By offloading raycasting to separate threads, the main game loop remains responsive, ensuring smooth gameplay even when performing large numbers of raycasts.2. Batch Processing for Reduced OverheadOn mobile, processing power is a precious resource, and FastCast addresses this by allowing batch processing of multiple raycasts in a single job. Instead of performing multiple raycasts individually, FastCast groups them into a single batch, reducing overhead and enhancing performance. This batch processing is especially useful in scenarios where many raycasts are needed, such as physics-based games, enemy detection systems, or interactive object selection.3. Configurable Raycast Limits for Mobile DevicesMobile devices vary greatly in their processing power, from high-end smartphones to budget devices. FastCast’s maxRaycastsPerFrame parameter allows you to configure the number of raycasts performed per frame. You can easily adjust this setting based on the target device's capabilities to ensure the raycasting system remains performant across a wide range of mobile hardware.For example, on lower-end devices, you can reduce the number of raycasts per frame, while high-end devices can handle more, all while maintaining smooth performance.4. Efficient Memory ManagementFastCast uses NativeArrays for efficient memory allocation and processing during raycasts, which is particularly important for mobile devices with limited memory. By using NativeArray to store raycast commands and results, FastCast minimizes garbage collection (GC) overhead and keeps memory usage low, which is essential to preventing performance spikes or frame drops on mobile.5. Battery-FriendlyRaycasting can be computationally expensive if not optimized, which can impact battery life on mobile devices. FastCast’s optimization strategies, such as batch processing and multi-threaded execution, help reduce the overall computational load, making your game more energy-efficient. With FastCast, you can ensure your raycasting operations are not a drain on mobile battery life.6. Gizmo-Free Mobile BuildsWhile FastCast includes a powerful Gizmo visualization system for debugging raycasts in the Editor, this functionality is automatically disabled in mobile builds, ensuring no unnecessary performance impact in your final mobile game. You can still use the Gizmo system during development to visualize raycasts in the Editor, but when the game is built and deployed to mobile, these features are omitted to ensure optimal runtime performance.Key Benefits for Mobile Projects:Job System integration ensures optimized performance for multi-threaded CPUs on mobile.Batch raycasting reduces overhead, making it perfect for real-time physics or complex interactions in mobile games.Configurable raycast limits allow you to tailor performance based on device capability.Low memory footprint and optimized garbage collection keep the app running smoothly on devices with limited resources.Battery-friendly by minimizing CPU usage and keeping resource consumption low.Best Use Cases on Mobile:Physics-heavy mobile games: Ideal for games that require a lot of raycasts for things like collision detection, enemy line-of-sight calculations, or physics simulations.AR/VR mobile experiences: Use FastCast to efficiently handle ray-based interaction in AR (Augmented Reality) and VR (Virtual Reality) experiences on mobile.Mobile FPS games: Perfect for fast-paced first-person shooters where fast, accurate raycasting is essential for bullet tracing or hit detection.With FastCast, you can ensure that your mobile game maintains high performance, even when performing a large number of raycasts, without sacrificing battery life or memory efficiency.Key Features:High-Performance Raycasting: Leveraging Unity’s multithreaded Job System to perform multiple raycasts in parallel, reducing CPU bottlenecks.Batch Processing: FastCast groups multiple raycasts into a single job, reducing overhead and improving performance, especially in mobile environments.Gizmo Debugging: Built-in Gizmo visualization for debugging raycasts in the Scene view. Shows hit results with color-coded lines and spheres.Configurable Max Raycasts: Control how many raycasts are performed per frame using the maxRaycastsPerFrame parameter to balance performance and accuracy.Performance Optimizations:Job System and Burst Compiler Compatible: Supports Unity’s Burst Compiler for additional performance improvements.NativeArray for Memory Efficiency: Uses NativeArrays for low-latency raycast jobs and results storage, reducing garbage collection and memory fragmentation.Single and Multi Raycasts: Offers APIs for performing both single raycasts and multiple raycasts in one batch.Mobile Optimization: Designed to run efficiently on mobile devices with configurable raycast limits and optimized memory usage, ensuring smooth gameplay even on low-end hardware.API Summary:PerformRaycast: Single raycast execution with callback for hit results.PerformRaycasts: Batch multiple raycasts with callback for hit results.SetMaxRaycastsPerFrame: Adjustable raycast limits to control performance per frame.GetRaycastsPerSecond: Real-time performance monitoring to help fine-tune raycasting limits.Documentation:Fully documented public API with examples for both single and multiple raycasts.Editor integration for real-time monitoring and Gizmo visualization during development.AI is used for promo images and for expansion on documentation