Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

fixed bug that did not allocate the correct array if there is a remov… #3814

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlexDM0
Copy link
Contributor

@AlexDM0 AlexDM0 commented Feb 9, 2018

Hi guys,

I encountered an issue where I have a vis dataset loaded into a graph2d and on removal (.clear() method) of all items, the graph did not redraw correctly. On updating afterwards it threw an Error.

Took quite a bit of digging but it turns out the optimization of the memory allocation does not account for deleted items. the onRemove method forwards to the onUpdate method which should not be done anymore if the group update blindly expects the items to be updated, not deleted.

This is more of an indication, you don't need to accept the request. Normally, this request would go to develop but I really didnt feel like comparing develop branches :)

Cheers

…al of items instead of a deletion. Forgotten case?
@AlexDM0
Copy link
Contributor Author

AlexDM0 commented Feb 13, 2018

Just FYI, redraw speed of graph2d is MUCH much worse in 4.21 than it was in 4.18.

@Tooa
Copy link
Member

Tooa commented Apr 2, 2018

Can you provide an example showing the redraw regression issues between 4.21 and 4.18? We may open a ticket with your example then. Someone might pick it up to investigate.

@AlexDM0
Copy link
Contributor Author

AlexDM0 commented Apr 2, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants