Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

[VisionX] Extreme Draw Distance Script

19011324

New member
VisionX 3.0 - The Next-Generation Draw Distance & LOD Manager

What is VisionX? A New Standard for Draw Distance.
VisionX is a complete, ground-up rewrite of the traditional draw distance script. Its purpose is to dramatically increase the render distance for map objects, creating immersive, seamless worlds without the performance cost and instability of older scripts. It is designed to be a lightweight, intelligent, and fully dynamic resource that requires zero manual configuration.




Why VisionX? How It's Better Than Older Scripts

VisionX was engineered to solve the core problems that have plagued draw distance scripts for years.

1. Unmatched Performance: The Inclusion Model
Older scripts use an exclusion model. On every single frame, they have to check nearly every object on the entire map and ask, "Should I ignore this?". This is inefficient and creates constant CPU load, especially on complex maps.

VisionX uses an inclusion model. On startup, it performs a one-time scan to identify only the objects that need to be managed. The script then focuses its resources exclusively on that small, targeted list, making it orders of magnitude faster and lighter by not wasting resources on unnecessary objects.

2. Engineered for Stability
Random bugs like falling through the map, camera glitches, and physics errors are often caused by overwhelming the game engine. VisionX is built to prevent these issues:

  • Batch Creation Throttling: Instead of creating hundreds of objects in a single frame (which causes stutter), VisionX intelligently spreads the creation process across multiple frames.
  • Optimized Code: Avoids slow calculations (like square roots) and uses staggered timers to ensure smooth, stable performance with no frame rate spikes.



3. Intelligent Hybrid Rendering
VisionX works with the engine, not against it.

  • Cloned Objects: The script fully controls custom objects, cloning them at long distances with high performance.
  • World Objects: Other objects are handed off to the game's native streamer, with their LOD distance permanently increased. This provides "the best of both worlds": script-based performance for your map and engine-level performance for everything else.






Key Features of VisionX 3.0

  • Automatic Object Categorization: No more manual lists! VisionX scans your map and automatically classifies objects into logical groups like "Decoration" and "Track".

  • Precision Command Control: A powerful and simple command suite allows full control.



    /vx deco: Clones only decoration objects (buildings, props, rocks, etc.).
  • /vx track: Clones only track objects (roads, bridges, tunnels, etc.).
  • /vx all: Clones all categorized objects for maximum visual fidelity.
  • /vx off: Disables the system.





  • In-Game Settings Panel: Adjust performance settings like Max View Range and Creation Batch Limit in real-time through a graphical UI, no need for .lua file edits. Settings are saved and synced across the server.



  • Developer & Stats Tools:



    /vx stats: Get a detailed breakdown of your map's object composition.
  • /vx build: For map makers, this command generates a lightweight, standalone version of the script tailored specifically to your map, ready for distribution.





  • Smart Refresh System:



    Soft Refresh (X Key): Press 'X' for a fast, 500ms restart of the current rendering mode without re-scanning objects.
  • Automatic Hard Refresh: Detects when you switch modes (e.g., from editor_main to race) and performs a full, clean re-scan of all objects after an 8-second wait, resolving the previous bug of needing a restart.

     






 
VisionX v3.2.3







Automatic Map Integration & Performance Suites




Release Date: 24/11/2025


This major update transforms VisionX from a viewing tool into a complete Map Developer Suite. It introduces automatic code injection, a smarter standalone script with built-in performance profiles for players, and critical optimization features.


 New Features:



Automated Map Integration (Builder)


  • Direct File Injection: No more copy-pasting! The builder can now write the visionx_client.lua file directly into your target map's resource folder.
  • Meta.xml Injection: Automatically detects and adds the script entry to the target map's meta.xml if it is missing.
  • Resource Browser: Added a dropdown menu in the Build UI to select any "map" resource currently loaded on the server.




 Smart Standalone Script (Generated Code)


The generated script for maps has been completely rewritten:

  • Performance Presets: Players can now switch between LOW, MEDIUM, HIGH, and DEFAULT modes.
  • Mapper's Default: The specific settings you configure in the VisionX UI before building become the "DEFAULT" preset for that map.
  • Hard "OFF" Switch: The /vx off command or cycling to "OFF" now completely shuts down the script, kills all timers, and purges all memory/clones.
  • DX Feedback System: Removed chatbox spam. Mode switching and startup messages now appear as clean, non-intrusive DX text overlays.
  • User Controls:



    Keybind: Press X to cycle through performance modes.
  • Command: /vx [low/medium/high/default/off]

[*]Startup Notification: A brief message appears for 5 seconds when the map starts, informing players that VisionX is active and how to toggle it.






 Optimization


  • Clone Limiter: Added a hard limit (default: 500) to the number of active object clones to prevent memory crashes on lower-end systems.
  • Buffered Frustum Culling: Objects are now strictly culled if they are outside the camera view (with a 200px buffer), significantly reducing rendering cost.




 UI & Experience


  • New Export Panel: A dedicated interface for building scripts with detailed instructions.
  • Dynamic Instructions: The UI now detects the current resource name to provide accurate ACL request commands.
  • Safety Warnings: Added color-coded warnings to ensure the target map is running and configured correctly before export.
  • Status Overlay: Added a real-time debug overlay showing Active Clones / Limit.




 Bug Fixes


  • Lua Format Error: Fixed a critical crash in the builder server caused by unescaped symbols in the template string.
  • Grid Logic: Fixed a typo in the spatial grid bounds calculation.
  • ACL Permissions: Updated meta.xml to request all necessary file management and auto-updater permissions.





 Important Note for Server Owners


This update requires additional ACL rights to function correctly. Please update your ACL or approve the requests on startup:

    <right name="function.fileCreate" access="true" />
    <right name="function.fileWrite" access="true" />
    <right name="function.fileClose" access="true" />
    <right name="function.xmlLoadFile" access="true" />
    <right name="function.xmlSaveFile" access="true" />
    <right name="function.xmlCreateChild" access="true" />
    <right name="general.ModifyOtherObjects" access="true" />



Download
https://github.com/Sheputy/visionx




 
Last edited by a moderator:
Back
Top