#jsmess 2018-09-05,Wed

↑back Search

Time Nickname Message
00:18 🔗 bai hmm. it's been a while since I did anything with sdl1 and gl, but it should definitely be supported
00:19 🔗 bai does vice use a gl renderer or is it pure software?
00:33 🔗 Sgeo_ I think it has a GL option, but mostly for X11, OSX, and Android
00:33 🔗 Sgeo_ Hmm, hold on
00:34 🔗 Sgeo_ I see some GL calls. At least one is for SDL2 though and not SDL1
00:34 🔗 Sgeo_ Actually not sure
02:32 🔗 Sgeo_ SDL_SetVideoMode has a flag for GL, wonder if there's a key on how to disable it there
02:35 🔗 Sgeo_ Looks like it's always set
02:36 🔗 Sgeo_ ...what if I just change the assert to an early return
02:41 🔗 Sgeo_ Hmm
02:41 🔗 Sgeo_ "uncaught exception: Legacy GL function (glBegin) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation."
02:42 🔗 bai ooooh, ouch, it uses gl 1.x?
02:43 🔗 Sgeo_ That's what Emscripten assumed based on a call to glBegin, at least.
02:43 🔗 bai that yeah
02:43 🔗 bai -that
02:44 🔗 bai basically oldschool gl 1.3 was immediate mode, rather than using FBO/VBOs
02:44 🔗 Sgeo_ "WARNING: using emscripten GL emulation. This is a collection of limited workarounds, do not expect it to work."
02:44 🔗 Sgeo_ Why doesn't VICE.js complain about this?
02:44 🔗 bai apps t hat use gles 2.0 or port pretty cleanly, but for gl 1.3 apps there's a whole other layer to emulate it
02:44 🔗 bai or newer*
02:45 🔗 bai and yeah....it's pretty hit or miss
02:45 🔗 bai if it's possible to compile vice with gl support disabled, that's probably the way to go
02:48 🔗 Sgeo_ The config checks for opengl support somehow
02:48 🔗 Sgeo_ Not sure yet if it errors without opengl or does something usefl
02:48 🔗 Sgeo_ "GL_TEXTURE0 coords are supplied, but that texture unit is disabled in the fixed-function pipeline."
02:49 🔗 Sgeo_ I'm confused, isn't that implying that it's NOT legacy?
02:54 🔗 Sgeo_ It seems to use OpenGL for "hardware scaling". No option to disable, as such, but I think I can safely delete the configure code, maybe
03:52 🔗 Sgeo_ https://i.imgur.com/zTESizj.png I think I pressed F12 a while ago. I was away from the VM, just switched back and saw that
03:52 🔗 Sgeo_ Not sure how long that was there before I noticed
04:09 🔗 db48x Sgeo_: progress :)
04:11 🔗 bai that's a thing
04:11 🔗 bai it sounds like the whole input handling system may need to be rethought
04:13 🔗 bai like instead of delaying until it has input, it should just return immediately while waiting for input, and then continue where it left off when the user does press a key
04:14 🔗 bai but that's easier said that done....and it's not even particularly easy to say, even :D
04:14 🔗 bai than*
04:15 🔗 Sgeo_ The current vice.js sort of punts on the menu. Opening the menu kills it
04:16 🔗 Sgeo_ I can't get anything except the menu to show up currently
04:16 🔗 bai yeah
04:17 🔗 bai non-menu input might be handled asynchronously already
04:34 🔗 Sgeo_ I can't understand this patch file
04:34 🔗 Sgeo_ https://github.com/rjanicek/vice.js/blob/master/vice/0001-Vice-2.4-Emscripten-changes.patch#L531
04:41 🔗 Sgeo_ https://i.imgur.com/0suOkfe.png BASIC flicked on for a second before everything died!
04:45 🔗 Sgeo_ https://i.imgur.com/O587nxT.png !!!
04:45 🔗 Sgeo_ (modifier keys like shift not working)
04:46 🔗 Sgeo_ Difference between these seems to be I used the data files from Vice 3.2 SVN instead of the ones that came with vice.js
04:46 🔗 Sgeo_ Hmm, it eventually hit a sound overflow
04:47 🔗 Sgeo_ The thing that got this far was using the patch's main modifications instead of my own. My guess as to the big substantiate difference would be there's a while loop in the patch for some reason I don't totally understand
05:05 🔗 db48x that's awesome
05:06 🔗 db48x that while loop in the watch loops over the emulation until it produces a new video frame
05:07 🔗 db48x s/watch/patch/ :P
05:07 🔗 db48x time to sleep if I'm making that kind of typo
05:09 🔗 SketchCow Sgeo_: Lovely
05:09 🔗 SketchCow A great breakthrough
05:09 🔗 Sgeo_ I think I erased the patch's changes to configure when trying to get the OpenGL to stop being a thing. I can try readding those tomorrow
05:09 🔗 Sgeo_ Thanks
05:28 🔗 Sgeo_ https://gist.github.com/Sgeo/6ba0f642fda09fc8627223f8461af6d1 is a sort of snapshot where I am so far. Certainly incompletely, doesn't contain descriptions of the build process etc, and is as broken as shown in the screenshot. Just want it in the cloud in case my computer were to unexpectedly die tomorrow
07:49 🔗 azakai has quit IRC (ny.us.hub west.us.hub)
07:49 🔗 db48x has quit IRC (ny.us.hub west.us.hub)
08:20 🔗 godane has quit IRC (Read error: Connection reset by peer)
12:06 🔗 godane has joined #jsmess
12:06 🔗 azakai has joined #jsmess
12:06 🔗 db48x has joined #jsmess
15:15 🔗 mx has left
15:34 🔗 SketchCow I'm in transit today but will check in if you need anything
19:18 🔗 Sgeo has joined #jsmess
19:23 🔗 Sgeo_ has quit IRC (Read error: Operation timed out)
20:01 🔗 Sgeo_ has joined #jsmess
20:02 🔗 Sgeo has quit IRC (Read error: Operation timed out)
20:08 🔗 Sgeo__ has joined #jsmess
20:11 🔗 Sgeo_ has quit IRC (Read error: Operation timed out)
22:03 🔗 Sgeo__ has quit IRC (Read error: Operation timed out)
23:23 🔗 SketchCow hi from the air
23:38 🔗 Sgeo has joined #jsmess
23:39 🔗 Sgeo Yeah, I need my Internet connection to stop dying q.q

irclogger-viewer