Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Use libuv as event library - #86

Closed
kkaefer wants to merge 26 commits into
masterfrom
uv
Closed

kkaefer wants to merge 26 commits into
masterfrom
uv

Conversation

@kkaefer

@kkaefer kkaefer commented Apr 3, 2014

Copy link
Copy Markdown
Member

No description provided.

@tmcw

tmcw commented Mar 14, 2014

Copy link
Copy Markdown
Contributor

We could also use libuv for networking on android, instead of using libcurl

@springmeyer

Copy link
Copy Markdown
Contributor

We could also use libuv for networking on android, instead of using libcurl

You mean as an http client? I've spent some time writing the basics of an http client in libuv. While it was a blast to get working (partly because there were at the time no examples of anyone else doing this in pure C) a proper one to replace libcurl would likely be a very very tall order. So I think we should plan to stick with libcurl. Anyway, here's the code: https://github.com/springmeyer/libuv-webserver/blob/master/webclient.cc

@tmcw

tmcw commented Mar 14, 2014

Copy link
Copy Markdown
Contributor

Gotcha: I was thinking that a subset of libcurl or bits stolen from node's source might do it, but you're right, I'm just too afraid of cross-compiling

@kkaefer

kkaefer commented Mar 17, 2014

Copy link
Copy Markdown
Member Author

@kkaefer

kkaefer commented Mar 26, 2014

Copy link
Copy Markdown
Member Author

This is the way I imagine this to work: The main thread and URL loading thread is glfw/platform-specific and will be swapped out depending on the platform. The rest will be part of the renderer.

llmr-native

@kkaefer

kkaefer commented Mar 26, 2014

Copy link
Copy Markdown
Member Author

@incanus Can you please look at this graphic and point out problems why this may be difficult to integrate as an iOS/MacOS view control?

@incanus

incanus commented Mar 26, 2014

Copy link
Copy Markdown
Contributor

As I understand it, this only affects the view controller as relates to swapping buffers after having done the render loop on a background thread each pass. I don't have a lot of experience with framebuffer swapping yet but it seems to be a pretty common approach on iOS as well so I don't foresee any problems here.

kkaefer added 4 commits April 1, 2014 17:48
missing things:
- debug toggle
- settings saving
- animations
- code cleanup
- use uv_work_queue for processing tiles
- libcurl integration into libuv
@kkaefer

kkaefer commented Apr 3, 2014

Copy link
Copy Markdown
Member Author
  • debug toggle
  • settings saving
  • animations
  • use uv_work_queue for processing tiles
  • libcurl integration into libuv

@kkaefer

kkaefer commented Apr 7, 2014

Copy link
Copy Markdown
Member Author
  • Clean up the way settings are handled. This is very weird atm; we have a config object that we put into a an atomic container, but we're also queuing transforms to be processed in the render thread for animations. We need to think this through properly.
  • Find the source of the random stalls. When zooming in/out, there are random stalls that can take up to 1 second.
  • Sometimes, the sprite texture goes completely black (even though it was loaded previously). After panning/zooming around a bit, it gets loaded again sometimes.
  • Find memory leak. We're allocating a lot of memory that keeps increasing over time.

@kkaefer kkaefer added the build label Apr 22, 2014
@kkaefer

kkaefer commented Apr 30, 2014

Copy link
Copy Markdown
Member Author

All of this is now implemented

@kkaefer kkaefer closed this Apr 30, 2014
@kkaefer
kkaefer deleted the uv branch May 12, 2014 08:47
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