getCoreVersion
Get the Core Module Version Number
getCoreVersion is used to query the specific version number of the currently loaded Runtime Core (kernel engine).
Note that the SDK's outer wrapper version (obtained via SUDRT.getRuntimeVersion()) may differ from the kernel engine version (obtained via this interface). When troubleshooting low-level rendering or reporting issues to technical support, this version number is more valuable as a reference.
Method Declaration
java
/**
* Return the version number of the Runtime Core module.
* * @return The kernel version number as a string (e.g. "2.3.15").
*/
String getCoreVersion();Runtime Behavior
- Kernel traceability: This version number directly reflects the iteration state of the underlying JS engine, rendering pipeline, and native core logic.
- Compatibility basis: Many advanced features (such as specific shader support or multithreading optimizations) are enabled based on the kernel version number.
- Zero latency: This information is already memory-resident after
loadCoresucceeds, so calling it incurs no performance overhead.
Example
java
// Get the kernel version from the core handle
String coreVersion = coreHandle.getCoreVersion();
// Print the version information
Log.i("SUDOP", "SUD Runtime Core Version: " + coreVersion);
// Business logic application: degrade or enable features for specific kernel versions
if (isVersionBelow(coreVersion, "2.0.0")) {
Log.w("SUDOP", "Low core version detected, disabling advanced lighting effects.");
}Notes
- Version independence: A kernel version (Core Version) upgrade usually means improved rendering performance or script execution efficiency, whereas an SDK version (Runtime Version) upgrade may only add new interfaces at the Java layer.
- Logging convention: When the app crashes and reports logs, it is recommended to record both
RuntimeVersionandCoreVersion.
