Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ private void profilePop_init(CallbackInfo ci) {
method = "updateChunks",
at = @At("HEAD")
)
private void profileImportantRebuilds(CallbackInfo ci) {
SeedQueueProfiler.push("important_rebuilds");
private void profileLazyRebuilds(CallbackInfo ci) {
SeedQueueProfiler.push("lazy_rebuilds");
}

@Inject(
Expand All @@ -97,12 +97,39 @@ private void profileRebuilds(CallbackInfo ci) {
target = "Lme/jellysquid/mods/sodium/client/render/chunk/compile/ChunkBuilder;performPendingUploads()Z"
)
)
private void profilePendingUploads(CallbackInfo ci) {
private void profilePendingUploads_updateChunks(CallbackInfo ci) {
SeedQueueProfiler.swap("pending_uploads");
}

@Inject(
method = "updateChunks",
at = @At("RETURN")
)
private void profilePop_updateChunks(CallbackInfo ci) {
SeedQueueProfiler.pop();
}

@Inject(
method = "updateImportantChunks()V",
at = @At("HEAD")
)
private void profileImportantRebuilds(CallbackInfo ci) {
SeedQueueProfiler.push("important_rebuilds");
}

@Inject(
method = "updateImportantChunks()V",
at = @At(
value = "INVOKE",
target = "Lme/jellysquid/mods/sodium/client/render/chunk/compile/ChunkBuilder;performPendingUploads()Z"
)
)
private void profilePendingUploads_updateImportantChunks(CallbackInfo ci) {
SeedQueueProfiler.swap("pending_uploads");
}

@Inject(
method = "updateImportantChunks()V",
at = @At(
value = "INVOKE",
target = "Lme/jellysquid/mods/sodium/client/render/chunk/ChunkRenderBackend;upload(Lme/jellysquid/mods/sodium/client/gl/device/CommandList;Ljava/util/Iterator;)V"
Expand All @@ -113,10 +140,10 @@ private void profileBackendUpload(CallbackInfo ci) {
}

@Inject(
method = "updateChunks",
method = "updateImportantChunks()V",
at = @At("RETURN")
)
private void profilePop_updateChunks(CallbackInfo ci) {
private void profilePop_updateImportantChunks(CallbackInfo ci) {
SeedQueueProfiler.pop();
}

Expand Down