<div dir="ltr">Hi Glavo,<div><br></div><div>There are more frequent calls to updateItem() since the VirtualFlow tries to gradually improve its estimation how large the total list size is (rather than assuming all cells have the same size). The major point is that if you override updateItem, it should not do more than strictly needed (e.g. don't create a Node etc). That method should return as fast as possible.</div><div><br></div><div>There are many completely different usecases for VirtualFlow in general, and it's not trivial to come up with a single implementation that deals "best" with all usecases. Therefore, I recently solicited for feedback and it might be good if you can give yours too? </div><div>See <a href="https://mail.openjdk.org/pipermail/openjfx-dev/2022-September/035851.html">https://mail.openjdk.org/pipermail/openjfx-dev/2022-September/035851.html</a> for the start of the discussion.</div><div><br></div><div>- Johan</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 22, 2022 at 9:24 AM Glavo <<a href="mailto:zjx001202@gmail.com">zjx001202@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>I'm one of the maintainers of the open source project HMCL (Hello! Minecraft Launcher<i>)</i>. This is a Minecraft launcher based on JavaFX. <div><div><br></div><div>In the past year, we have received a lot of feedback on performance problems. Through performance analysis, I noticed that from JavaFX 17 ea+8, the performance of list scrolling is terrible.<br></div><div><br></div><div>I analyzed the method calls and noticed that the updateItem method of ListCell is called 8 times more frequently in JavaFX 17 than in JavaFX 16.<br></div><div><br></div><div>I guess this is due to the following commit:<br></div><div><br></div><div> <a href="https://github.com/openjdk/jfx/commit/8e547571fb3d40df843c27fc11921b5d4765c481" target="_blank">https://github.com/openjdk/jfx/commit/8e547571fb3d40df843c27fc11921b5d4765c481</a></div><div><br></div><div>I wonder if this is a bug? <br></div></div><div><br></div><div>Best regards,<br>Glavo</div><div><br></div></div></div>
</blockquote></div>