-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering should be virtual wrt viewport #5
Comments
This was discussed briefly and I think it was just stated that it was too intertwined with the core of VS to easily utilize in the hex editor. I would be happy to discuss it more with you if you have any further knowledge about how that could easily be done, I would be happy to discuss it as my implementation does do some basic chunk rendering which does have a decent buffer outside the viewport. |
We'd have to weed it out but it is feasible! We even have paging capabilities which simply calls for pages to load, as the list scrolls up and down. |
I took it back, the root cause is forced reflow --> private populateHexAdresses(rowData: VirtualizedPacket[]): void {
const hex_addr = document.getElementById("hexaddr");
const offset = rowData[0].offset;
const addr = document.createElement("div");
addr.className = "row";
addr.setAttribute("data-offset", offset.toString());
addr.innerText = pad(offset.toString(16), 8).toUpperCase();
hex_addr!.appendChild(addr);
this.rows[0].set(offset.toString(), addr);
// We add a left px offset to effectively right align the column
addr.style.left = `${addr.parentElement!.clientWidth - addr.clientWidth}px`;
this.translateRow(addr, offset);
} Suggestions:
I think this will remove most force reflow and reduce this issue by a ton. |
We're now virtual |
Testing microsoft/vscode#98980
You should be able to use our list widget for this. It seems we're rendering wayyy more than necessary and I get a lot of blank frames when scrolling around.
The text was updated successfully, but these errors were encountered: