d2lmirrors / anolis

Anolis is the underlying project for the XPize and Vize resource switchers for Windows XP and Vista respectivly. The codebase allows for the easy swapping around of resources within Win32 executables and other files. (just adding some missing data)
GNU General Public License v2.0
1 stars 0 forks source link

RawViewer.RenderResource creates lag with large arrays #27

Closed Dobby233Liu closed 1 year ago

Dobby233Liu commented 1 year ago

creation date = 2009-03-04T14:33:52.953-08:00

if data.Length is large in places like ResourceDataView.ShowViewer(viewer, data), like over 1 MB , the viewer.RenderResource(data) should be threaded instead of being executed on main thread time.   Try testing on NlsLexicons0007.dll, it has single resources larger than 10 MB

Dobby233Liu commented 1 year ago

closed date = 2009-04-10T14:52:47.243-07:00

I've made RawViewer use BackgroundWorker if the data is larger than 512KB. It shows a simple "Loading..." message in the centre of the screen.

In future I'd like to change it to some loading animation or something to show the program hasn't frozen.